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.
1926
1927
1928
1929
|
# File 'lib/oktest.rb', line 1926
def initialize()
super
@_nl = true
end
|
Instance Method Details
#enter_scope(scope) ⇒ Object
1945
1946
1947
1948
|
# File 'lib/oktest.rb', line 1945
def enter_scope(scope)
_nl()
puts "## #{scope.filename}"
end
|
#enter_topic(topic, depth) ⇒ Object
1955
1956
1957
1958
1959
1960
1961
1962
|
# File 'lib/oktest.rb', line 1955
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
1950
1951
1952
1953
|
# File 'lib/oktest.rb', line 1950
def exit_scope(scope)
_nl()
print_exceptions()
end
|
#exit_spec(spec, depth, status, error, parent) ⇒ Object
1971
1972
1973
1974
1975
1976
|
# File 'lib/oktest.rb', line 1971
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
1964
1965
1966
1967
1968
1969
|
# File 'lib/oktest.rb', line 1964
def exit_topic(topic, depth)
super
return if topic._prefix == '-'
_nl()
print_exceptions()
end
|
#order_policy ⇒ Object
1931
1932
1933
|
# File 'lib/oktest.rb', line 1931
def order_policy()
:spec_first
end
|