Sha256: 06a66bc207d58fb3c33a09402a40886eaf1251a4f4780b94e0e02cc0a6dbd8da

Contents?: true

Size: 816 Bytes

Versions: 3

Compression:

Stored size: 816 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, failure)
      puts "Storing #{example_group.location} for a post build rerun attempt"
      spec_file = example_group.location.match(/.*rb/).to_s
      spec_name = example.description
      "SPEC=#{spec_file} SPEC_OPTS=\"-e \\\"#{spec_name}\\\"\"* #{failure}"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
parallelized_specs-0.3.94 lib/parallelized_specs/failures_rerun_logger.rb
parallelized_specs-0.3.93 lib/parallelized_specs/failures_rerun_logger.rb
parallelized_specs-0.3.92 lib/parallelized_specs/failures_rerun_logger.rb