Class: Test::Unit::AutoRunner::StopOnFailureListener
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/test/unit/autorunner.rb |
Instance Method Summary
Instance Method Details
#attach_to_mediator(mediator)
[ GitHub ]# File 'lib/test/unit/autorunner.rb', line 524
def attach_to_mediator(mediator) mediator.add_listener(TestResult::FINISHED) do |result| result.stop unless result.passed? end end