Class: Oktest::SimpleReporter

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

Constructor Details

This class inherits a constructor from Oktest::BaseReporter

Instance Method Details

#enter_scope(scope) ⇒ Object

; [!xfd5o] reports filename.



1620
1621
1622
# File 'lib/oktest.rb', line 1620

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

#exit_scope(scope) ⇒ Object



1624
1625
1626
1627
# File 'lib/oktest.rb', line 1624

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

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



1629
1630
1631
1632
1633
# File 'lib/oktest.rb', line 1629

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