module Minitest

Public Class Methods

plugin_fail_fast_init(options) click to toggle source
# File lib/minitest/fail_fast_plugin.rb, line 10
def self.plugin_fail_fast_init options
  if FailFastReporter.fail_fast?
    io = options.fetch(:io, $stdout)
    self.reporter.reporters << FailFastReporter.new(io, options)
  end
end
plugin_fail_fast_options(opts, _options) click to toggle source
# File lib/minitest/fail_fast_plugin.rb, line 4
def self.plugin_fail_fast_options opts, _options
  opts.on "-f", "--fail-fast", "Halt running the test suite when a test fails" do
    FailFastReporter.fail_fast!
  end
end