Class: Minitest::Queue::LocalRequeueReporter

Inherits:
Reporters::DefaultReporter
  • Object
show all
Includes:
CI::Queue::OutputHelpers
Defined in:
lib/minitest/queue/local_requeue_reporter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLocalRequeueReporter

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

#requeuesObject

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

#reportObject



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