Sha256: 2872430defbec1c1c3bc8e911e7ed79bfcf294b7855b7e03672910af4d75c294

Contents?: true

Size: 350 Bytes

Versions: 11

Compression:

Stored size: 350 Bytes

Contents

require 'cucumber/formatter/io'
require 'cucumber/formatter/console'

module Cucumber
  module Formatter

    class FailFast

      def initialize(configuration)
        configuration.on_event :after_test_case do |event|
          Cucumber.wants_to_quit = true unless event.result.ok?(configuration.strict?)
        end
      end

    end

  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
cucumber-2.99.0 lib/cucumber/formatter/fail_fast.rb
mobiusloop-0.1.5 lib/cucumber/formatter/fail_fast.rb
cucumber-2.4.0 lib/cucumber/formatter/fail_fast.rb
mobiusloop-0.1.3 lib/cucumber/formatter/fail_fast.rb
mobiusloop-0.1.2 lib/cucumber/formatter/fail_fast.rb
cucumber-2.3.3 lib/cucumber/formatter/fail_fast.rb
cucumber-2.3.2 lib/cucumber/formatter/fail_fast.rb
cucumber-2.3.1 lib/cucumber/formatter/fail_fast.rb
cucumber-2.3.0 lib/cucumber/formatter/fail_fast.rb
cucumber-2.2.0 lib/cucumber/formatter/fail_fast.rb
cucumber-2.1.0 lib/cucumber/formatter/fail_fast.rb