Class: Test::Unit::TestSuiteRunner
- Inherits:
-
Object
- Object
- Test::Unit::TestSuiteRunner
- Defined in:
- lib/test/unit/test-suite-runner.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(test_suite) ⇒ TestSuiteRunner
constructor
A new instance of TestSuiteRunner.
- #run(result, &progress_block) ⇒ Object
Constructor Details
#initialize(test_suite) ⇒ TestSuiteRunner
Returns a new instance of TestSuiteRunner.
29 30 31 |
# File 'lib/test/unit/test-suite-runner.rb', line 29 def initialize(test_suite) @test_suite = test_suite end |
Class Method Details
.n_workers ⇒ Object
20 21 22 |
# File 'lib/test/unit/test-suite-runner.rb', line 20 def n_workers @n_workers end |
.n_workers=(n) ⇒ Object
24 25 26 |
# File 'lib/test/unit/test-suite-runner.rb', line 24 def n_workers=(n) @n_workers = n end |
.run_all_tests ⇒ Object
16 17 18 |
# File 'lib/test/unit/test-suite-runner.rb', line 16 def run_all_tests yield end |
Instance Method Details
#run(result, &progress_block) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/test/unit/test-suite-runner.rb', line 33 def run(result, &progress_block) yield(TestSuite::STARTED, @test_suite.name) yield(TestSuite::STARTED_OBJECT, @test_suite) run_startup(result) run_tests(result, &progress_block) ensure begin run_shutdown(result) ensure yield(TestSuite::FINISHED, @test_suite.name) yield(TestSuite::FINISHED_OBJECT, @test_suite) end end |