class Test::Reporters::Tapj
TAP-J Reporter
Constants
- REVISION
Public Class Methods
new(runner)
click to toggle source
Calls superclass method
# File lib/rubytest/format/tapj.rb, line 12 def initialize(runner) require 'json' super(runner) end
Public Instance Methods
begin_case(test_case)
click to toggle source
Calls superclass method
# File lib/rubytest/format/tapj.rb, line 25 def begin_case(test_case) puts super(test_case).to_json end
begin_suite(suite)
click to toggle source
Calls superclass method
# File lib/rubytest/format/tapj.rb, line 18 def begin_suite(suite) hash = super(suite) hash['rev'] = REVISION puts hash.to_json end
end_suite(suite)
click to toggle source
Calls superclass method
# File lib/rubytest/format/tapj.rb, line 50 def end_suite(suite) puts super(suite).to_json puts "..." end
error(test, exception)
click to toggle source
Calls superclass method
# File lib/rubytest/format/tapj.rb, line 40 def error(test, exception) puts super(test, exception).to_json end
fail(test, exception)
click to toggle source
Calls superclass method
# File lib/rubytest/format/tapj.rb, line 35 def fail(test, exception) puts super(test, exception).to_json end
pass(test)
click to toggle source
Calls superclass method
# File lib/rubytest/format/tapj.rb, line 30 def pass(test) #, backtrace=nil) puts super(test).to_json end
todo(test, exception)
click to toggle source
Calls superclass method
# File lib/rubytest/format/tapj.rb, line 45 def todo(test, exception) puts super(test, exception).to_json end