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.
1984
1985
1986
1987
|
# File 'lib/oktest.rb', line 1984
def initialize()
super
@_nl = true
end
|
Instance Method Details
#enter_scope(scope) ⇒ Object
2003
2004
2005
2006
|
# File 'lib/oktest.rb', line 2003
def enter_scope(scope)
_nl()
puts "## #{scope.filename}"
end
|
#enter_topic(topic, depth) ⇒ Object
2013
2014
2015
2016
2017
2018
2019
2020
|
# File 'lib/oktest.rb', line 2013
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
2008
2009
2010
2011
|
# File 'lib/oktest.rb', line 2008
def exit_scope(scope)
_nl()
print_exceptions()
end
|
#exit_spec(spec, depth, status, error, parent) ⇒ Object
2029
2030
2031
2032
2033
2034
|
# File 'lib/oktest.rb', line 2029
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
2022
2023
2024
2025
2026
2027
|
# File 'lib/oktest.rb', line 2022
def exit_topic(topic, depth)
super
return if topic._prefix == '-'
_nl()
print_exceptions()
end
|
#order_policy ⇒ Object
1989
1990
1991
|
# File 'lib/oktest.rb', line 1989
def order_policy()
:spec_first
end
|