Class: ParallelTests::RSpec::FailuresLogger

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

Instance Method Summary collapse

Methods inherited from LoggerBase

#close, #initialize

Constructor Details

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

Instance Method Details

#dump_summary(*args) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/parallel_tests/rspec/failures_logger.rb', line 8

def dump_summary(*args)
  lock_output do
    notification = args.first
    unless notification.failed_examples.empty?
      colorizer = ::RSpec::Core::Formatters::ConsoleCodes
      output.puts notification.colorized_rerun_commands(colorizer)
    end
  end
  @output.flush
end