class ParallelTests::Cucumber::FailuresLogger
Public Class Methods
Source
# File lib/parallel_tests/cucumber/failures_logger.rb, line 11 def initialize(config) super @io = prepare_io(config.out_stream) # Remove handler inherited from Cucumber::Formatter::Rerun that does not # properly join file failures handlers = config.event_bus.instance_variable_get(:@handlers) handlers[::Cucumber::Events::TestRunFinished.to_s].pop # Add our own handler config.on_event :test_run_finished do next if @failures.empty? lock_output do @failures.each do |file, lines| lines.each do |line| @io.print "#{file}:#{line} " end end end end end
Calls superclass method