class Test::Unit::UI::Tap::YAMLTestRunner
TAP-Y report format.
Public Class Methods
new(suite, options={})
click to toggle source
Calls superclass method
Test::Unit::UI::Tap::BaseTestRunner::new
# File lib/test/unit/ui/tap/yaml_testrunner.rb, line 11 def initialize(suite, options={}) require 'yaml' unless respond_to?(:to_yaml) super(suite, options) end
Public Instance Methods
tapout_after_suite(time)
click to toggle source
Calls superclass method
Test::Unit::UI::Tap::BaseTestRunner#tapout_after_suite
# 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)
click to toggle source
Calls superclass method
Test::Unit::UI::Tap::BaseTestRunner#tapout_before_case
# 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)
click to toggle source
Calls superclass method
Test::Unit::UI::Tap::BaseTestRunner#tapout_before_suite
# 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)
click to toggle source
Calls superclass method
Test::Unit::UI::Tap::BaseTestRunner#tapout_error
# 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)
click to toggle source
Calls superclass method
Test::Unit::UI::Tap::BaseTestRunner#tapout_fail
# 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)
click to toggle source
Calls superclass method
Test::Unit::UI::Tap::BaseTestRunner#tapout_note
# 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)
click to toggle source
Calls superclass method
Test::Unit::UI::Tap::BaseTestRunner#tapout_omit
# 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)
click to toggle source
Calls superclass method
Test::Unit::UI::Tap::BaseTestRunner#tapout_pass
# 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)
click to toggle source
Calls superclass method
Test::Unit::UI::Tap::BaseTestRunner#tapout_todo
# 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