Sha256: f85a1bf0d3f244cb3775ea36b089a2e2f7489088b7f01a86a18064d78f867637

Contents?: true

Size: 578 Bytes

Versions: 38

Compression:

Stored size: 578 Bytes

Contents

require 'cucumber/formatter/gherkin_formatter_adapter'
require 'cucumber/formatter/io'
require 'gherkin/formatter/argument'
require 'gherkin/formatter/pretty_formatter'

module Cucumber
  module Formatter
    # The formatter used for <tt>--format gpretty</tt>
    class Gpretty < GherkinFormatterAdapter
      include Io

      def initialize(runtime, io, options)
        @io = ensure_io(io, "json")
        super(Gherkin::Formatter::PrettyFormatter.new(@io, false), true)
      end

      def after_feature(feature)
        super
        @io.puts
      end
    end
  end
end

Version data entries

38 entries across 36 versions & 2 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/cucumber-1.3.16/lib/cucumber/formatter/gpretty.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/cucumber-1.3.18/lib/cucumber/formatter/gpretty.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/cucumber-1.3.18/lib/cucumber/formatter/gpretty.rb
cucumber-1.3.20 lib/cucumber/formatter/gpretty.rb
cucumber-2.0.0 lib/cucumber/formatter/gpretty.rb
cucumber-2.0.0.rc.5 lib/cucumber/formatter/gpretty.rb
cucumber-1.3.19 lib/cucumber/formatter/gpretty.rb
cucumber-2.0.0.rc.4 lib/cucumber/formatter/gpretty.rb
cucumber-2.0.0.rc.3 lib/cucumber/formatter/gpretty.rb
cucumber-2.0.0.rc.2 lib/cucumber/formatter/gpretty.rb
cucumber-2.0.0.rc.1 lib/cucumber/formatter/gpretty.rb
cucumber-1.3.18 lib/cucumber/formatter/gpretty.rb
cucumber-2.0.0.beta.5 lib/cucumber/formatter/gpretty.rb
cucumber-2.0.0.beta.4 lib/cucumber/formatter/gpretty.rb
cucumber-2.0.0.beta.3 lib/cucumber/formatter/gpretty.rb
cucumber-1.3.17 lib/cucumber/formatter/gpretty.rb
cucumber-2.0.0.beta.2 lib/cucumber/formatter/gpretty.rb
cucumber-2.0.0.beta.1 lib/cucumber/formatter/gpretty.rb
cucumber-1.3.16 lib/cucumber/formatter/gpretty.rb
cucumber-1.3.15 lib/cucumber/formatter/gpretty.rb