Class: Minitest::ProgressReporter
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Reporter ,
AbstractReporter
|
|
Instance Chain:
self,
Reporter ,
AbstractReporter
|
|
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
Instance Attribute Summary
Instance Method Summary
- #prerecord(klass, name) Internal use only
- #record(result) Internal use only
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. |
#synchronize |
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 760
def prerecord klass, name # :nodoc: return unless [:verbose] io.print "%s#%s = " % [klass.name, name] io.flush end
#record(result)
This method is for internal use only.
[ GitHub ]
# File 'lib/minitest.rb', line 767
def record result # :nodoc: io.print "%.2f s = " % [result.time] if [:verbose] io.print result.result_code io.puts if [:verbose] end