Module: Mutineer::MinitestIntegration::StopAtFirstFailure::OuterReporter6

Defined in:
lib/mutineer/minitest_integration/stop_at_first_failure.rb

Overview

Prepended on the Minitest singleton class for Minitest 6.

Instance Method Summary collapse

Instance Method Details

#run_all_suites(reporter, options) ⇒ Object

Keeps the outer reporter. Only the first call counts, because a test can call this method with its own reporter.

Parameters:

  • reporter (Minitest::CompositeReporter) —

    the outer reporter.

  • options (Hash) —

    the Minitest options.

Returns:

  • (Object) —

    whatever Minitest returns.



41
42
43
44
# File 'lib/mutineer/minitest_integration/stop_at_first_failure.rb', line 41

def run_all_suites(reporter, options)
  StopAtFirstFailure.armed_reporter ||= reporter if StopAtFirstFailure.armed_here?
  super
end