Sha256: 12d99839f9f2da7566ef58e69929c50c80693325149b3e4e93d46a1cae345493

Contents?: true

Size: 705 Bytes

Versions: 215

Compression:

Stored size: 705 Bytes

Contents

require 'parallelized_specs'
require File.join(File.dirname(__FILE__), 'spec_logger_base')

class ParallelizedSpecs::SpecErrorCountLogger < ParallelizedSpecs::SpecLoggerBase
  def initialize(options, output=nil)
    super
    @passed_examples = []
    @pending_examples = []
    @failed_examples = []
  end

  def example_passed(example)
    @passed_examples << example
  end

  def example_pending(*args)
    @pending_examples << args
  end

  def example_failed(example, count, failure)
    @failed_examples << failure
  end

  def dump_summary(duration, example_count, failure_count, pending_count)
    lock_output do
      @output.puts "#{ @failed_examples.size }"
    end
    @output.flush
  end
end

Version data entries

215 entries across 215 versions & 1 rubygems

Version Path
parallelized_specs-0.3.04 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.3.03 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.3.02 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.3.01 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.2.99.01 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.2.99 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.2.98 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.2.97 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.2.96 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.2.95 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.2.94 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.2.93 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.2.92 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.2.91 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.2.9 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.2.8 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.2.7 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.2.6 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.2.5 lib/parallelized_specs/spec_error_count_logger.rb
parallelized_specs-0.2.4 lib/parallelized_specs/spec_error_count_logger.rb