Class: Test::Unit::TestSuite
- Inherits:
-
Object
- Object
- Test::Unit::TestSuite
- Defined in:
- lib/tuff/test_suite.rb
Instance Method Summary collapse
Instance Method Details
#run(result) {|STARTED, name| ... } ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/tuff/test_suite.rb', line 7 def run(result, &progress_block) yield(STARTED, name) run_startup(result) @tests.each do |test| test.run(result, &progress_block) break unless result.passed? end run_shutdown(result) yield(FINISHED, name) end |