Sha256: bda84b9f3e5c91e82a402713e1bc59ba5e63d1af380826e79d82464072479318

Contents?: true

Size: 808 Bytes

Versions: 2

Compression:

Stored size: 808 Bytes

Contents

require 'parallelized_specs/spec_logger_base'


module RSpec
  class ParallelizedSpecs::FailuresFormatter < ParallelizedSpecs::SpecLoggerBase

    def example_failed(example, counter, failure)
      lock_output do
        @output.puts retry_command(example)
      end
    end

    def dump_summary(duration, example_count, failure_count, pending_count)
     ;
    end

    def dump_failures(*args)
      ;
    end

    def dump_failure(*args)
      ;
    end

    def dump_pending(*args)
      ;
    end

    def retry_command(example)
      puts "Storing #{example_group.location} for a post build rerun attempt"
      spec_file = example_group.location.gsub("\"", "\\\"").match(/\/.*b/).to_s
      spec_name = example.description
      "SPEC=#{spec_file} SPEC_OPTS='-e \"#{spec_name}\"'"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
parallelized_specs-0.3.88 lib/parallelized_specs/failures_rerun_logger.rb
parallelized_specs-0.3.87 lib/parallelized_specs/failures_rerun_logger.rb