Class: Oktest::CompactReporter

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_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.



2042
2043
2044
# File 'lib/oktest.rb', line 2042

def enter_scope(scope)
  print "#{scope.filename}: "
end

#exit_scope(scope) ⇒ Object



2046
2047
2048
2049
# File 'lib/oktest.rb', line 2046

def exit_scope(scope)
  puts()
  print_exceptions()
end

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



2051
2052
2053
2054
2055
# File 'lib/oktest.rb', line 2051

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