Class: Buildkite::TestCollector::MinitestPlugin::Reporter
- Inherits:
-
Minitest::StatisticsReporter
- Object
- Minitest::StatisticsReporter
- Buildkite::TestCollector::MinitestPlugin::Reporter
- Defined in:
- lib/buildkite/test_collector/minitest_plugin/reporter.rb
Instance Method Summary collapse
-
#initialize(io, options) ⇒ Reporter
constructor
A new instance of Reporter.
- #record(result) ⇒ Object
- #report ⇒ Object
Constructor Details
#initialize(io, options) ⇒ Reporter
Returns a new instance of Reporter.
5 6 7 8 9 |
# File 'lib/buildkite/test_collector/minitest_plugin/reporter.rb', line 5 def initialize(io, ) super @io = io @options = end |
Instance Method Details
#record(result) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/buildkite/test_collector/minitest_plugin/reporter.rb', line 11 def record(result) super if Buildkite::TestCollector.uploader if trace = Buildkite::TestCollector.uploader.traces[result.source_location] Buildkite::TestCollector.session.add_example_to_send_queue(result.source_location) end end end |
#report ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/buildkite/test_collector/minitest_plugin/reporter.rb', line 21 def report super if Buildkite::TestCollector.session Buildkite::TestCollector.session.send_remaining_data Buildkite::TestCollector.session.close end end |