Class: Minitest::ProgressReporter
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Reporter,
AbstractReporter
|
|
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
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 | Record a result and output the Runnable#result_code. |
#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 489
def prerecord klass, name #:nodoc: if [:verbose] then io.print "%s#%s = " % [klass, name] io.flush end end
#record(result)
This method is for internal use only.
[ GitHub ]
# File 'lib/minitest.rb', line 496
def record result # :nodoc: io.print "%.2f s = " % [result.time] if [:verbose] io.print result.result_code io.puts if [:verbose] end