Class: Test::Unit::UI::Tap::YAMLTestRunner
- Inherits:
-
BaseTestRunner
- Object
- Test::Unit::UI::TestRunner
- BaseTestRunner
- Test::Unit::UI::Tap::YAMLTestRunner
- Defined in:
- lib/test/unit/ui/tap/yaml_testrunner.rb
Overview
TAP-Y report format.
Constant Summary
Constants inherited from BaseTestRunner
Instance Method Summary collapse
-
#initialize(suite, options = {}) ⇒ YAMLTestRunner
constructor
A new instance of YAMLTestRunner.
- #tapout_after_suite(time) ⇒ Object
- #tapout_before_case(testcase) ⇒ Object
- #tapout_before_suite(suite) ⇒ Object
- #tapout_error(test) ⇒ Object
- #tapout_fail(test) ⇒ Object
- #tapout_note(note) ⇒ Object
- #tapout_omit(test) ⇒ Object
- #tapout_pass(test) ⇒ Object
- #tapout_todo(test) ⇒ Object
Constructor Details
#initialize(suite, options = {}) ⇒ YAMLTestRunner
Returns a new instance of YAMLTestRunner.
11 12 13 14 |
# File 'lib/test/unit/ui/tap/yaml_testrunner.rb', line 11 def initialize(suite, ={}) require 'yaml' unless respond_to?(:to_yaml) super(suite, ) end |
Instance Method Details
#tapout_after_suite(time) ⇒ Object
46 47 48 49 50 |
# File 'lib/test/unit/ui/tap/yaml_testrunner.rb', line 46 def tapout_after_suite(time) doc = super(time) puts doc.to_yaml if doc puts "..." end |
#tapout_before_case(testcase) ⇒ Object
18 19 20 21 |
# File 'lib/test/unit/ui/tap/yaml_testrunner.rb', line 18 def tapout_before_case(testcase) doc = super(testcase) puts doc.to_yaml if doc end |
#tapout_before_suite(suite) ⇒ Object
15 16 17 |
# File 'lib/test/unit/ui/tap/yaml_testrunner.rb', line 15 def tapout_before_suite(suite) puts super(suite).to_yaml end |
#tapout_error(test) ⇒ Object
42 43 44 45 |
# File 'lib/test/unit/ui/tap/yaml_testrunner.rb', line 42 def tapout_error(test) doc = super(test) puts doc.to_yaml if doc end |
#tapout_fail(test) ⇒ Object
30 31 32 33 |
# File 'lib/test/unit/ui/tap/yaml_testrunner.rb', line 30 def tapout_fail(test) doc = super(test) puts doc.to_yaml if doc end |
#tapout_note(note) ⇒ Object
22 23 24 25 |
# File 'lib/test/unit/ui/tap/yaml_testrunner.rb', line 22 def tapout_note(note) doc = super(note) puts doc.to_yaml if doc end |
#tapout_omit(test) ⇒ Object
34 35 36 37 |
# File 'lib/test/unit/ui/tap/yaml_testrunner.rb', line 34 def tapout_omit(test) doc = super(test) puts doc.to_yaml if doc end |
#tapout_pass(test) ⇒ Object
26 27 28 29 |
# File 'lib/test/unit/ui/tap/yaml_testrunner.rb', line 26 def tapout_pass(test) doc = super(test) puts doc.to_yaml if doc end |
#tapout_todo(test) ⇒ Object
38 39 40 41 |
# File 'lib/test/unit/ui/tap/yaml_testrunner.rb', line 38 def tapout_todo(test) doc = super(test) puts doc.to_yaml if doc end |