Class: Minitest::Queue::GrindRecorder
- Inherits:
-
Reporters::BaseReporter
- Object
- Reporters::BaseReporter
- Minitest::Queue::GrindRecorder
- Defined in:
- lib/minitest/queue/grind_recorder.rb
Class Attribute Summary collapse
-
.failure_formatter ⇒ Object
Returns the value of attribute failure_formatter.
Instance Attribute Summary collapse
-
#test_count ⇒ Object
Returns the value of attribute test_count.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(build:, **options) ⇒ GrindRecorder
constructor
A new instance of GrindRecorder.
- #record(test) ⇒ Object
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:, **) super() @build = build end |
Class Attribute Details
.failure_formatter ⇒ Object
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_count ⇒ Object
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
.counters ⇒ Object
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 |