Sha256: 14150159f80a0df1fdec9d447cbc8eb49ed69e8b6802287d4951df65928d3dfc
Contents?: true
Size: 857 Bytes
Versions: 10
Compression:
Stored size: 857 Bytes
Contents
require 'parallelized_specs/spec_logger_base' class ParallelizedSpecs::ExampleRerunFailuresLogger < ParallelizedSpecs::SpecLoggerBase def example_failed(example, *args) if RSPEC_1 if example.location != nil unless !!self.example_group.nested_descriptions.to_s.match(/shared/) || !!self.instance_variable_get(:@example_group).examples.last.location.match(/helper/) @failed_examples ||= [] @failed_examples << "#{example.location.match(/spec.*\d/).to_s.chomp} " end end else super end end # RSpec 1: dumps 1 failed spec def dump_failure(*args) end # RSpec 2: dumps all failed specs def dump_failures(*args) end def dump_summary(*args) lock_output do if RSPEC_1 @output.puts "#{@failed_examples.to_s.chomp}" end end @output.flush end end
Version data entries
10 entries across 10 versions & 1 rubygems