Class: Test::Unit::AutoRunner::StopOnFailureListener

Inherits:
Object
  • Object
show all
Defined in:
lib/test/unit/autorunner.rb,
lib/test/unit/autorunner.rb,
lib/test/unit/autorunner.rb,
lib/test/unit/autorunner.rb,
lib/test/unit/autorunner.rb

Instance Method Summary collapse

Instance Method Details

#attach_to_mediator(mediator) ⇒ Object



521
522
523
524
525
# File 'lib/test/unit/autorunner.rb', line 521

def attach_to_mediator(mediator)
  mediator.add_listener(TestResult::FINISHED) do |result|
    result.stop unless result.passed?
  end
end