Sha256: ddfbbe89ada5531cc4c9b3efb006431250374dbec4864dcdb2ee3135c3165f65

Contents?: true

Size: 489 Bytes

Versions: 7

Compression:

Stored size: 489 Bytes

Contents

require 'cucumber/formatter/rerun'

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

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

      def after_feature(feature)
        unless @lines.empty?
          lock_output do
            @lines.each do |line|
              @io.puts "#{feature.file}:#{line}"
            end
          end
        end
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
parallel_tests-0.12.1 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-0.12.0 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-0.11.6 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-0.11.5 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-0.11.4 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-0.11.3 lib/parallel_tests/cucumber/failures_logger.rb
parallel_tests-0.11.2 lib/parallel_tests/cucumber/failures_logger.rb