Class: Test::Reporters::Tapy
Overview
Instance Attribute Summary
Attributes inherited from Abstract
#runner
Instance Method Summary
collapse
#begin_test, #end_case, #omit
Methods inherited from Abstract
#begin_test, #clean_backtrace, #code, #end_case, #end_test, #file, #file_and_line, #file_and_line_array, inherited, #line, #omit, #record, registry, #skip_case, #skip_test, #subtotal, #tally, #timestamp, #total, #total_count
Constructor Details
#initialize(runner) ⇒ Tapy
Returns a new instance of Tapy.
10
11
12
13
|
# File 'lib/test/reporters/tapy.rb', line 10
def initialize(runner)
require 'json'
super(runner)
end
|
Instance Method Details
#begin_case(test_case) ⇒ Object
21
22
23
|
# File 'lib/test/reporters/tapy.rb', line 21
def begin_case(test_case)
puts super(test_case).to_yaml
end
|
#begin_suite(suite) ⇒ Object
16
17
18
|
# File 'lib/test/reporters/tapy.rb', line 16
def begin_suite(suite)
puts super(suite).to_yaml
end
|
#end_suite(suite) ⇒ Object
46
47
48
49
|
# File 'lib/test/reporters/tapy.rb', line 46
def end_suite(suite)
puts super(suite).to_yaml
puts "..."
end
|
#error(test, exception) ⇒ Object
36
37
38
|
# File 'lib/test/reporters/tapy.rb', line 36
def error(test, exception)
puts super(test, exception).to_yaml
end
|
#fail(test, exception) ⇒ Object
31
32
33
|
# File 'lib/test/reporters/tapy.rb', line 31
def fail(test, exception)
puts super(test, exception).to_yaml
end
|
#pass(test) ⇒ Object
26
27
28
|
# File 'lib/test/reporters/tapy.rb', line 26
def pass(test) puts super(test).to_yaml
end
|
#todo(test, exception) ⇒ Object
41
42
43
|
# File 'lib/test/reporters/tapy.rb', line 41
def todo(test, exception)
puts super(test, exception).to_yaml
end
|