Class: Minitest::ProgressReporter
- Inherits:
-
Reporter
- Object
- AbstractReporter
- Reporter
- Minitest::ProgressReporter
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/minitest-5.17.0/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.
Instance Attribute Summary
Attributes inherited from Reporter
Instance Method Summary collapse
-
#prerecord(klass, name) ⇒ Object
:nodoc:.
-
#record(result) ⇒ Object
:nodoc:.
Methods inherited from Reporter
Methods inherited from AbstractReporter
Constructor Details
This class inherits a constructor from Minitest::Reporter
Instance Method Details
#prerecord(klass, name) ⇒ Object
:nodoc:
644 645 646 647 648 649 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/minitest-5.17.0/lib/minitest.rb', line 644 def prerecord klass, name #:nodoc: if [:verbose] then io.print "%s#%s = " % [klass.name, name] io.flush end end |
#record(result) ⇒ Object
:nodoc:
651 652 653 654 655 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/minitest-5.17.0/lib/minitest.rb', line 651 def record result # :nodoc: io.print "%.2f s = " % [result.time] if [:verbose] io.print result.result_code io.puts if [:verbose] end |