Sha256: 4c95d7f260d8e1c1b9de502d61719f5e0ac4cb7c4d8fa6f5505105de6ee175bb

Contents?: true

Size: 584 Bytes

Versions: 39

Compression:

Stored size: 584 Bytes

Contents

require 'cucumber/formatter/rerun'
require 'parallel_tests/gherkin/io'

module ParallelTests
  module Cucumber
    class FailuresLogger < ::Cucumber::Formatter::Rerun
      include ParallelTests::Gherkin::Io

      def initialize(runtime, path_or_io, options)
        super
        @io = prepare_io(path_or_io)
      end

      def done
        return if @failures.empty?
        lock_output do
          @failures.each do |file, lines|
            lines.each do |line|
              @io.print "#{file}:#{line} "
            end
          end
        end
      end

    end
  end
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
parallel_tests-2.18.0 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.17.1 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.17.0 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.16.1 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.16.0 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.15.0 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.14.3 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.14.2 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.14.1 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.14.0 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.13.0 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.12.0 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.11.0 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.10.0 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.9.0 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.8.0 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.7.1 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.7.0 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.6.0 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-2.5.0 lib/parallel_tests/cucumber/failures_logger.rb