Class: Turn::Reporter
Overview
Reporter
There are two distinct way in which a report may be utilized by a Runner: per-call or per-file. The method #pass, #fail and #error are generic, and will be used in either case. A per-call runner will use all the methods of a Reporter, while a per-file runner will use start_case per file, and will not use the start_test and finish_test methods, since those are beyond it’s grainularity.
Constant Summary
Constants included
from Colorize
Colorize::COLORIZE, Colorize::ERROR, Colorize::FAIL, Colorize::PASS
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(io) ⇒ Reporter
Returns a new instance of Reporter.
20
21
22
|
# File 'lib/turn/reporter.rb', line 20
def initialize(io)
@io = io || $stdout
end
|
Instance Attribute Details
#io ⇒ Object
Returns the value of attribute io.
18
19
20
|
# File 'lib/turn/reporter.rb', line 18
def io
@io
end
|
Instance Method Details
#error(message = nil) ⇒ Object
41
42
|
# File 'lib/turn/reporter.rb', line 41
def error(message=nil)
end
|
#fail(message = nil) ⇒ Object
38
39
|
# File 'lib/turn/reporter.rb', line 38
def fail(message=nil)
end
|
#finish_case(kase) ⇒ Object
47
48
|
# File 'lib/turn/reporter.rb', line 47
def finish_case(kase)
end
|
#finish_suite(suite) ⇒ Object
50
51
|
# File 'lib/turn/reporter.rb', line 50
def finish_suite(suite)
end
|
#finish_test(test) ⇒ Object
44
45
|
# File 'lib/turn/reporter.rb', line 44
def finish_test(test)
end
|
#pass(message = nil) ⇒ Object
35
36
|
# File 'lib/turn/reporter.rb', line 35
def pass(message=nil)
end
|
#start_case(kase) ⇒ Object
29
30
|
# File 'lib/turn/reporter.rb', line 29
def start_case(kase)
end
|
#start_suite(suite) ⇒ Object
These methods are called in the process of running the tests.
26
27
|
# File 'lib/turn/reporter.rb', line 26
def start_suite(suite)
end
|
#start_test(test) ⇒ Object
32
33
|
# File 'lib/turn/reporter.rb', line 32
def start_test(test)
end
|