Class: Oktest::PlainReporter

Inherits:
BaseReporter show all
Defined in:
lib/oktest.rb

Constant Summary

Constants inherited from BaseReporter

BaseReporter::CHARS, BaseReporter::LABELS

Instance Attribute Summary

Attributes inherited from BaseReporter

#counts

Instance Method Summary collapse

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

; [!w842j] reports progress.



1641
1642
1643
1644
1645
1646
# File 'lib/oktest.rb', line 1641

def exit_all(runner)
  elapsed = Time.now - @start_at
  puts()
  print_exceptions()
  puts footer(elapsed)
end

#exit_spec(spec, depth, status, error, parent) ⇒ Object



1648
1649
1650
1651
1652
# File 'lib/oktest.rb', line 1648

def exit_spec(spec, depth, status, error, parent)
  super
  print Color.status(status, CHARS[status] || '?')
  $stdout.flush
end