Class: Quarry::Spec::Reporter
- Inherits:
-
Object
show all
- Defined in:
- lib/quarry/spec/reporter.rb,
lib/quarry/spec/reporter/summary.rb,
lib/quarry/spec/reporter/verbatim.rb,
lib/quarry/spec/reporter/dotprogress.rb
Overview
Defined Under Namespace
Classes: DotProgress, Summary, Verbatim
Constant Summary
collapse
- ANSICode =
Clio::ANSICode
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of Reporter.
21
22
23
24
25
26
27
|
# File 'lib/quarry/spec/reporter.rb', line 21
def initialize
@specs = 0
@steps = 0
@pass = []
@fail = []
@error = []
end
|
Instance Attribute Details
Returns the value of attribute error.
19
20
21
|
# File 'lib/quarry/spec/reporter.rb', line 19
def error
@error
end
|
Returns the value of attribute fail.
18
19
20
|
# File 'lib/quarry/spec/reporter.rb', line 18
def fail
@fail
end
|
Returns the value of attribute pass.
17
18
19
|
# File 'lib/quarry/spec/reporter.rb', line 17
def pass
@pass
end
|
Returns the value of attribute steps.
16
17
18
|
# File 'lib/quarry/spec/reporter.rb', line 16
def steps
@steps
end
|
Instance Method Details
39
40
|
# File 'lib/quarry/spec/reporter.rb', line 39
def (step)
end
|
#report_end(spec) ⇒ Object
63
64
|
# File 'lib/quarry/spec/reporter.rb', line 63
def report_end(spec)
end
|
#report_error(step, exception) ⇒ Object
58
59
60
61
|
# File 'lib/quarry/spec/reporter.rb', line 58
def report_error(step, exception)
raise exception if $DEBUG
@error << [step, exception]
end
|
#report_fail(step, assertion) ⇒ Object
54
55
56
|
# File 'lib/quarry/spec/reporter.rb', line 54
def report_fail(step, assertion)
@fail << [step, assertion]
end
|
36
37
|
# File 'lib/quarry/spec/reporter.rb', line 36
def (step)
end
|
#report_intro ⇒ Object
29
30
|
# File 'lib/quarry/spec/reporter.rb', line 29
def report_intro
end
|
#report_mode(step) ⇒ Object
42
43
44
|
# File 'lib/quarry/spec/reporter.rb', line 42
def report_mode(step)
report_literal(step)
end
|
#report_pass(step) ⇒ Object
50
51
52
|
# File 'lib/quarry/spec/reporter.rb', line 50
def report_pass(step)
@pass << step
end
|
#report_start(spec) ⇒ Object
32
33
34
|
# File 'lib/quarry/spec/reporter.rb', line 32
def report_start(spec)
@specs += 1
end
|
#report_step(step) ⇒ Object
46
47
48
|
# File 'lib/quarry/spec/reporter.rb', line 46
def report_step(step)
@steps += 1
end
|
#report_summary ⇒ Object
66
67
|
# File 'lib/quarry/spec/reporter.rb', line 66
def report_summary
end
|