Module: Mutineer::MinitestIntegration::StopAtFirstFailure::OuterReporter5

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

Overview

Prepended on the Minitest singleton class for Minitest 5.

Instance Method Summary collapse

Instance Method Details

#__run(reporter, options) ⇒ Object

The Minitest 5 form of OuterReporter6#run_all_suites.

Parameters:

  • reporter (Minitest::CompositeReporter) —

    the outer reporter.

  • options (Hash) —

    the Minitest options.

Returns:

  • (Object) —

    whatever Minitest returns.



54
55
56
57
# File 'lib/mutineer/minitest_integration/stop_at_first_failure.rb', line 54

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