Class: Oktest::QuietReporter

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, #order_policy

Constructor Details

This class inherits a constructor from Oktest::BaseReporter

Instance Method Details

#exit_all(runner) ⇒ Object

; [!0z4im] reports all statuses except PASS status.



2082
2083
2084
2085
2086
2087
# File 'lib/oktest.rb', line 2082

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

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



2089
2090
2091
2092
2093
2094
2095
# File 'lib/oktest.rb', line 2089

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