Class: Oktest::CompactReporter
- Inherits:
-
BaseReporter
- Object
- Reporter
- BaseReporter
- Oktest::CompactReporter
- Defined in:
- lib/oktest.rb
Constant Summary
Constants inherited from BaseReporter
BaseReporter::CHARS, BaseReporter::LABELS
Instance Attribute Summary
Attributes inherited from BaseReporter
Instance Method Summary collapse
-
#enter_scope(scope) ⇒ Object
; [!xfd5o] reports filename.
- #exit_scope(scope) ⇒ Object
- #exit_spec(spec, depth, status, error, parent) ⇒ Object
Methods inherited from BaseReporter
#enter_all, #enter_spec, #enter_topic, #exit_all, #exit_topic, #initialize
Methods inherited from Reporter
#counts, #enter_all, #enter_spec, #enter_topic, #exit_all, #exit_topic, #order_policy
Constructor Details
This class inherits a constructor from Oktest::BaseReporter
Instance Method Details
#enter_scope(scope) ⇒ Object
; [!xfd5o] reports filename.
2127 2128 2129 |
# File 'lib/oktest.rb', line 2127 def enter_scope(scope) print "#{scope.filename}: " end |
#exit_scope(scope) ⇒ Object
2131 2132 2133 2134 |
# File 'lib/oktest.rb', line 2131 def exit_scope(scope) puts() print_exceptions() end |
#exit_spec(spec, depth, status, error, parent) ⇒ Object
2136 2137 2138 2139 2140 |
# File 'lib/oktest.rb', line 2136 def exit_spec(spec, depth, status, error, parent) super print Color.status(status, CHARS[status] || '?') $stdout.flush end |