Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/ci/reporter/rake/test_unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
task :testunit do
rm_rf ENV["CI_REPORTS"] || "test/reports"
test_loader = CI::Reporter.maybe_quote_filename "#{File.dirname(__FILE__)}/test_unit_loader.rb"
ENV["TESTOPTS"] = "#{ENV["TESTOPTS"]} #{test_loader}"
# Use RUBYOPT instead of TESTOPTS to avoid conflicts with rake 13.4+
# which now preserves TESTOPTS and appends -v when verbose is enabled.
# Adding a file path to TESTOPTS caused rake_test_loader to treat the
# loader file as a test file, resulting in "version unknown" errors.
ENV["RUBYOPT"] = "#{ENV["RUBYOPT"]} -r#{test_loader}"
end
end
end