Sha256: 43786d0b53f30d31d8d7ba0abae93d387d7a815806b0749617bbddfea75c958f

Contents?: true

Size: 677 Bytes

Versions: 38

Compression:

Stored size: 677 Bytes

Contents

require 'parallel_tests/rspec/logger_base'
require 'parallel_tests/rspec/runner'

class ParallelTests::RSpec::FailuresLogger < ParallelTests::RSpec::LoggerBase
  if RSPEC_2
    def dump_failures(*args)
    end
  else
    RSpec::Core::Formatters.register self, :dump_summary
  end

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

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
parallel_tests-3.4.0 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-3.3.0 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-3.2.0 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-3.1.0 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-3.0.0 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-2.32.0 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-2.31.0 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-2.30.1 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-2.30.0 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-2.29.2 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-2.29.1 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-2.29.0 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-2.28.0 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-2.27.1 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-2.27.0 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-2.26.2 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-2.26.0 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-2.25.0 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-2.24.0 lib/parallel_tests/rspec/failures_logger.rb
parallel_tests-2.23.0 lib/parallel_tests/rspec/failures_logger.rb