Class: Minitest::ProgressReporter

Inherits:
Reporter show all
Defined in:
opal/stdlib/minitest.rb

Overview

A very simple reporter that prints the "dots" during the run.

This is added to the top-level CompositeReporter at the start of the run. If you want to change the output of minitest via a plugin, pull this out of the composite and replace it with your own.

Instance Attribute Summary

Attributes inherited from Reporter

#io, #options

Instance Method Summary collapse

Methods inherited from Reporter

#initialize

Methods inherited from AbstractReporter

#passed?, #report, #start

Constructor Details

This class inherits a constructor from Minitest::Reporter

Instance Method Details

#record(result) ⇒ Object

:nodoc:



459
460
461
462
463
464
# File 'opal/stdlib/minitest.rb', line 459

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