Class: Test::Unit::UI::Tap::TestRunner
- Inherits:
-
Test::Unit::UI::TestRunner
- Object
- Test::Unit::UI::TestRunner
- Test::Unit::UI::Tap::TestRunner
- Defined in:
- lib/test/unit/ui/tap/testrunner.rb
Overview
Runs a Test::Unit::TestSuite and outputs result as TAP format.
Instance Attribute Summary
Attributes inherited from Test::Unit::UI::TestRunner
Instance Method Summary collapse
-
#initialize(suite, options = {}) ⇒ TestRunner
constructor
A new instance of TestRunner.
-
#start ⇒ Object
Begins the test run.
Methods included from Test::Unit::UI::TestRunnerUtilities
#run, #start_command_line_test
Constructor Details
#initialize(suite, options = {}) ⇒ TestRunner
Returns a new instance of TestRunner.
18 19 20 21 22 23 |
# File 'lib/test/unit/ui/tap/testrunner.rb', line 18 def initialize(suite, ={}) super @output = @options[:output] || STDOUT @n_tests = 0 @already_outputted = false end |
Instance Method Details
#start ⇒ Object
Begins the test run.
26 27 28 29 30 31 32 |
# File 'lib/test/unit/ui/tap/testrunner.rb', line 26 def start result = super def result.passed? true # for prove commend :< end result end |