class Test::Unit::AutoRunner::StopOnFailureListener

Public Instance Methods

attach_to_mediator(mediator) click to toggle source
# File test-unit-3.6.1/lib/test/unit/autorunner.rb, line 569
def attach_to_mediator(mediator)
  mediator.add_listener(TestResult::FINISHED) do |result|
    result.stop unless result.passed?
  end
end