123456789_123456789_123456789_123456789_123456789_

Class: Minitest::ProgressReporter

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
self, Reporter, AbstractReporter, Mutex_m
Inherits: Minitest::Reporter
Defined in: lib/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.

Class Method Summary

Reporter - Inherited

Instance Attribute Summary

Reporter - Inherited

#io

The IO used to report.

#options

Command-line options for this run.

AbstractReporter - Inherited

#passed?

Did this run pass?

Instance Method Summary

AbstractReporter - Inherited

#prerecord

About to start running a test.

#record

Output and record the result of the test.

#report

Outputs the summary of the run.

#start

Starts reporting on the run.

Constructor Details

This class inherits a constructor from Minitest::Reporter

Instance Method Details

#prerecord(klass, name)

This method is for internal use only.
[ GitHub ]

  
# File 'lib/minitest.rb', line 618

def prerecord klass, name #:nodoc:
  if options[:verbose] then
    io.print "%s#%s = " % [klass.name, name]
    io.flush
  end
end

#record(result)

This method is for internal use only.
[ GitHub ]

  
# File 'lib/minitest.rb', line 625

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