Skip to content

Commit

Permalink
Merge pull request #165 from billhorsman/main
Browse files Browse the repository at this point in the history
Cope with the gem being loaded but not configured when using minitest
  • Loading branch information
gchan authored Dec 14, 2022
2 parents 7d6bbb8 + e22d682 commit 98f4319
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/buildkite/test_collector/minitest_plugin/reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ def initialize(io, options)
def record(result)
super

if trace = Buildkite::TestCollector.uploader.traces[result.source_location]
Buildkite::TestCollector.session&.write_result(trace)
if Buildkite::TestCollector.uploader
if trace = Buildkite::TestCollector.uploader.traces[result.source_location]
Buildkite::TestCollector.session&.write_result(trace)
end
end
end

Expand Down

0 comments on commit 98f4319

Please sign in to comment.