Module: Mutineer::MinitestIntegration::KillRecorder::MarkSkippedClass6

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

Overview

Prepended on each loaded test class's singleton under Minitest 6: one class's run and each test's class-level run, user wrappers included. A run without --matrix skips both after a stop (see StopAtFirstFailure::SkipAfterStop6).

Instance Method Summary collapse

Instance Method Details

#run(klass, method_name, reporter) ⇒ Object

Runs one test's class-level step inside a skip region once a serial test has failed.

Parameters:

  • klass (Class)
  • method_name (String)
  • reporter (Minitest::CompositeReporter)

Returns:

  • (Object)


56
57
58
# File 'lib/mutineer/minitest_integration/kill_recorder.rb', line 56

def run(klass, method_name, reporter)
  KillRecorder.skipping { super }
end

#run_suite(reporter, options = {}) ⇒ Object

Runs the class inside a skip region once a serial test has failed.

Parameters:

  • reporter (Minitest::CompositeReporter)
  • options (Hash) (defaults to: {})

Returns:

  • (Object)


44
45
46
47
# File 'lib/mutineer/minitest_integration/kill_recorder.rb', line 44

def run_suite(reporter, options = {})
  KillRecorder.class_starting(self, reporter)
  KillRecorder.skipping { super }
end