Class: Tunit::ProgressReporter

Inherits:
Reporter
  • Object
show all
Defined in:
lib/tunit/progress_reporter.rb

Instance Attribute Summary

Attributes inherited from Reporter

#assertions, #count, #errors, #failures, #io, #options, #results, #skips, #start_time, #total_time

Instance Method Summary collapse

Methods inherited from Reporter

#initialize, #passed?, #report, #start

Constructor Details

This class inherits a constructor from Tunit::Reporter

Instance Method Details

#record(result) ⇒ Object



5
6
7
8
9
# File 'lib/tunit/progress_reporter.rb', line 5

def record result
  io.print result.code
  io.print " = %s#%s (%.2f s)" % [result.class, result.name, result.time] if options[:verbose]
  io.puts if options[:verbose]
end