Class: ParallelTests::RSpec::SummaryLogger

Inherits:
LoggerBase
  • Object
show all
Defined in:
lib/parallel_tests/rspec/summary_logger.rb

Constant Summary

Constants inherited from LoggerBase

LoggerBase::RSPEC_1

Instance Method Summary collapse

Methods inherited from LoggerBase

#close, #initialize, #lock_output

Constructor Details

This class inherits a constructor from ParallelTests::RSpec::LoggerBase

Instance Method Details

#dump_failure(*args) ⇒ Object

RSpec 1: dumps 1 failed spec



5
6
7
8
9
10
# File 'lib/parallel_tests/rspec/summary_logger.rb', line 5

def dump_failure(*args)
  lock_output do
    super
  end
  @output.flush
end

#dump_failures(*args) ⇒ Object

RSpec 2: dumps all failed specs



13
14
15
16
17
18
# File 'lib/parallel_tests/rspec/summary_logger.rb', line 13

def dump_failures(*args)
  lock_output do
    super
  end
  @output.flush
end