Class: Minitest::Queue::GrindRecorder

Inherits:
Reporters::BaseReporter
  • Object
show all
Defined in:
lib/minitest/queue/grind_recorder.rb

Class Attribute Summary collapse

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(build:, **options) ⇒ GrindRecorder

Returns a new instance of GrindRecorder.



22
23
24
25
# File 'lib/minitest/queue/grind_recorder.rb', line 22

def initialize(build:, **options)
  super(options)
  @build = build
end

Class Attribute Details

.failure_formatterObject

Returns the value of attribute failure_formatter.



18
19
20
# File 'lib/minitest/queue/grind_recorder.rb', line 18

def failure_formatter
  @failure_formatter
end

Instance Attribute Details

#test_countObject

Returns the value of attribute test_count.



6
7
8
# File 'lib/minitest/queue/grind_recorder.rb', line 6

def test_count
  @test_count
end

Class Method Details

.countersObject



8
9
10
11
12
13
14
15
# File 'lib/minitest/queue/grind_recorder.rb', line 8

def self.counters
  @counters ||= {
    'failures' => 0,
    'errors' => 0,
    'skips' => 0,
    'test_count' => 0
  }
end

Instance Method Details

#record(test) ⇒ Object



27
28
29
30
# File 'lib/minitest/queue/grind_recorder.rb', line 27

def record(test)
  increment_counter(test)
  record_test(test)
end