Class: Test::Unit::UI::TestRunner
- Inherits:
-
Object
- Object
- Test::Unit::UI::TestRunner
- Extended by:
- TestRunnerUtilities
- Defined in:
- lib/test/unit/ui/testrunner.rb
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (Object) listeners
readonly
Returns the value of attribute listeners.
Instance Method Summary (collapse)
-
- (TestRunner) initialize(suite, options = {})
constructor
A new instance of TestRunner.
-
- (Object) start
Begins the test run.
Methods included from TestRunnerUtilities
Constructor Details
- (TestRunner) initialize(suite, options = {})
A new instance of TestRunner
10 11 12 13 14 15 16 17 18 |
# File 'lib/test/unit/ui/testrunner.rb', line 10 def initialize(suite, ={}) if suite.respond_to?(:suite) @suite = suite.suite else @suite = suite end @options = @listeners = @options[:listeners] || [] end |
Instance Attribute Details
- (Object) listeners (readonly)
Returns the value of attribute listeners
9 10 11 |
# File 'lib/test/unit/ui/testrunner.rb', line 9 def listeners @listeners end |
Instance Method Details
- (Object) start
Begins the test run.
21 22 23 24 25 26 |
# File 'lib/test/unit/ui/testrunner.rb', line 21 def start setup_mediator attach_to_mediator attach_listeners start_mediator end |