Class: Oktest::QuietReporter
- Inherits:
-
BaseReporter
- Object
- Reporter
- BaseReporter
- Oktest::QuietReporter
- 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
-
#exit_all(runner) ⇒ Object
; [!0z4im] reports all statuses except PASS status.
- #exit_spec(spec, depth, status, error, parent) ⇒ Object
Methods inherited from BaseReporter
#enter_all, #enter_scope, #enter_spec, #enter_topic, #exit_scope, #exit_topic, #initialize
Methods inherited from Reporter
#counts, #enter_all, #enter_scope, #enter_spec, #enter_topic, #exit_scope, #exit_topic
Constructor Details
This class inherits a constructor from Oktest::BaseReporter
Instance Method Details
#exit_all(runner) ⇒ Object
; [!0z4im] reports all statuses except PASS status.
1660 1661 1662 1663 1664 1665 |
# File 'lib/oktest.rb', line 1660 def exit_all(runner) elapsed = Time.now - @start_at puts() print_exceptions() puts (elapsed) end |
#exit_spec(spec, depth, status, error, parent) ⇒ Object
1667 1668 1669 1670 1671 1672 1673 |
# File 'lib/oktest.rb', line 1667 def exit_spec(spec, depth, status, error, parent) super if status != :PASS print Color.status(status, CHARS[status] || '?') $stdout.flush end end |