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.



1984
1985
1986
# File 'lib/oktest.rb', line 1984

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

#exit_scope(scope) ⇒ Object



1988
1989
1990
1991
# File 'lib/oktest.rb', line 1988

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

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



1993
1994
1995
1996
1997
# File 'lib/oktest.rb', line 1993

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