Class: Oktest::SimpleReporter
Constant Summary
Constants inherited
from BaseReporter
BaseReporter::CHARS, BaseReporter::LABELS
Instance Attribute Summary
Attributes inherited from BaseReporter
#counts
Instance Method Summary
collapse
#enter_all, #enter_spec, #exit_all
Methods inherited from Reporter
#counts, #enter_all, #enter_spec, #exit_all
Constructor Details
; [!jxa1b] reports topics and progress.
2069
2070
2071
2072
|
# File 'lib/oktest.rb', line 2069
def initialize()
super
@_nl = true
end
|
Instance Method Details
#enter_scope(scope) ⇒ Object
2088
2089
2090
2091
|
# File 'lib/oktest.rb', line 2088
def enter_scope(scope)
_nl()
puts "## #{scope.filename}"
end
|
#enter_topic(topic, depth) ⇒ Object
2098
2099
2100
2101
2102
2103
2104
2105
|
# File 'lib/oktest.rb', line 2098
def enter_topic(topic, depth)
super
return if topic._prefix == '-'
_nl()
print "#{' ' * (depth - 1)}#{topic._prefix} #{Color.topic(topic.target)}: "
$stdout.flush()
_nl_off()
end
|
#exit_scope(scope) ⇒ Object
2093
2094
2095
2096
|
# File 'lib/oktest.rb', line 2093
def exit_scope(scope)
_nl()
print_exceptions()
end
|
#exit_spec(spec, depth, status, error, parent) ⇒ Object
2114
2115
2116
2117
2118
2119
|
# File 'lib/oktest.rb', line 2114
def exit_spec(spec, depth, status, error, parent)
super
print Color.status(status, CHARS[status] || '?')
$stdout.flush
_nl_off()
end
|
#exit_topic(topic, depth) ⇒ Object
2107
2108
2109
2110
2111
2112
|
# File 'lib/oktest.rb', line 2107
def exit_topic(topic, depth)
super
return if topic._prefix == '-'
_nl()
print_exceptions()
end
|
#order_policy ⇒ Object
2074
2075
2076
|
# File 'lib/oktest.rb', line 2074
def order_policy()
:spec_first
end
|