Skip to content

Commit

Permalink
Ensure junit to report
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita8 committed Feb 27, 2024
1 parent f9ec197 commit 1c405f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ruby/lib/minitest/queue/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ def run_command

set_load_path
Minitest.queue = queue
junit_reporter = JUnitReporter.new
reporters = [
LocalRequeueReporter.new(verbose: verbose),
BuildStatusRecorder.new(build: queue.build),
JUnitReporter.new,
junit_reporter,
TestDataReporter.new(namespace: queue_config&.namespace),
OrderReporter.new(path: 'log/test_order.log'),
]
Expand Down Expand Up @@ -107,6 +108,7 @@ def run_command

at_exit {
verify_reporters!(reporters)
junit_reporter.report unless File.exist?(junit_reporter.report_path)
}
# Let minitest's at_exit hook trigger
end
Expand Down

0 comments on commit 1c405f2

Please sign in to comment.