Class: Minitest::Queue::LocalRequeueReporter
- Inherits:
-
Reporters::DefaultReporter
- Object
- Reporters::DefaultReporter
- Minitest::Queue::LocalRequeueReporter
- Includes:
- CI::Queue::OutputHelpers
- Defined in:
- lib/minitest/queue/local_requeue_reporter.rb
Instance Attribute Summary collapse
-
#requeues ⇒ Object
Returns the value of attribute requeues.
Instance Method Summary collapse
-
#initialize ⇒ LocalRequeueReporter
constructor
A new instance of LocalRequeueReporter.
- #report ⇒ Object
Constructor Details
#initialize ⇒ LocalRequeueReporter
Returns a new instance of LocalRequeueReporter.
11 12 13 14 |
# File 'lib/minitest/queue/local_requeue_reporter.rb', line 11 def initialize(*) self.requeues = 0 super end |
Instance Attribute Details
#requeues ⇒ Object
Returns the value of attribute requeues.
9 10 11 |
# File 'lib/minitest/queue/local_requeue_reporter.rb', line 9 def requeues @requeues end |
Instance Method Details
#report ⇒ Object
16 17 18 19 20 |
# File 'lib/minitest/queue/local_requeue_reporter.rb', line 16 def report self.requeues = results.count(&:requeued?) super print_report end |