Sha256: 765b5a883697689b9e7e2d241fa3699be6d0037bd3d48f542986dc5921301bc0

Contents?: true

Size: 519 Bytes

Versions: 4

Compression:

Stored size: 519 Bytes

Contents

module Cucumber
  module Formatters
    class AutotestFormatter
      def initialize(io)
        @io = io
        @failed_scenarios = []
      end
      
      def step_didnt_pass(step, regexp, args)
        unless @failed_scenarios.include? step.scenario.name
          @failed_scenarios << step.scenario.name
          @io.puts step.scenario.name
        end
      end
      
      alias step_failed  step_didnt_pass
      alias step_pending step_didnt_pass
      alias step_skipped step_didnt_pass
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aslakhellesoy-cucumber-0.1.16.5 lib/cucumber/formatters/autotest_formatter.rb
aslakhellesoy-cucumber-0.1.99.1 lib/cucumber/formatters/autotest_formatter.rb
aslakhellesoy-cucumber-0.1.99.2 lib/cucumber/formatters/autotest_formatter.rb
aslakhellesoy-cucumber-0.1.99.3 lib/cucumber/formatters/autotest_formatter.rb