Module: Mutineer::MinitestIntegration::OuterReporter::Hook6

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

Overview

Prepended on the Minitest singleton class for Minitest 6.

Instance Method Summary collapse

Instance Method Details

#run_all_suites(reporter, options) ⇒ Object

Hands the outer reporter to the armed clients. 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.



24
25
26
27
# File 'lib/mutineer/minitest_integration/outer_reporter.rb', line 24

def run_all_suites(reporter, options)
  OuterReporter.seen(reporter)
  super
end