Module: Mutineer::MinitestIntegration::KillRecorder::MarkSkippedClass5

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

Overview

The Minitest 5 form of MarkSkippedClass6.

Instance Method Summary collapse

Instance Method Details

#run(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)


68
69
70
71
# File 'lib/mutineer/minitest_integration/kill_recorder.rb', line 68

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

#run_one_method(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)


80
81
82
# File 'lib/mutineer/minitest_integration/kill_recorder.rb', line 80

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