Class: Minitest::Reporters::QueueReporter
- Inherits:
-
BaseReporter
- Object
- BaseReporter
- Minitest::Reporters::QueueReporter
- Includes:
- ANSI::Code
- Defined in:
- lib/minitest/reporters/queue_reporter.rb
Instance Attribute Summary collapse
-
#requeues ⇒ Object
Returns the value of attribute requeues.
Instance Method Summary collapse
-
#initialize ⇒ QueueReporter
constructor
A new instance of QueueReporter.
- #report ⇒ Object
Constructor Details
#initialize ⇒ QueueReporter
Returns a new instance of QueueReporter.
9 10 11 12 |
# File 'lib/minitest/reporters/queue_reporter.rb', line 9 def initialize(*) self.requeues = 0 super end |
Instance Attribute Details
#requeues ⇒ Object
Returns the value of attribute requeues.
7 8 9 |
# File 'lib/minitest/reporters/queue_reporter.rb', line 7 def requeues @requeues end |
Instance Method Details
#report ⇒ Object
14 15 16 17 18 |
# File 'lib/minitest/reporters/queue_reporter.rb', line 14 def report self.requeues = results.count(&:requeued?) super print_report end |