Sha256: 89a28297c6b9221efcb1480af12fbf4eeba6e04f08f8c678a901242785414ab3

Contents?: true

Size: 569 Bytes

Versions: 14

Compression:

Stored size: 569 Bytes

Contents

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

module Lucid
  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

14 entries across 14 versions & 1 rubygems

Version Path
lucid-0.5.1 lib/lucid/formatter/gpretty.rb
lucid-0.4.1 lib/lucid/formatter/gpretty.rb
lucid-0.4.0 lib/lucid/formatter/gpretty.rb
lucid-0.3.3 lib/lucid/formatter/gpretty.rb
lucid-0.3.0 lib/lucid/formatter/gpretty.rb
lucid-0.2.1 lib/lucid/formatter/gpretty.rb
lucid-0.2.0 lib/lucid/formatter/gpretty.rb
lucid-0.1.1 lib/lucid/formatter/gpretty.rb
lucid-0.1.0 lib/lucid/formatter/gpretty.rb
lucid-0.0.9 lib/lucid/formatter/gpretty.rb
lucid-0.0.8 lib/lucid/formatter/gpretty.rb
lucid-0.0.7 lib/lucid/formatter/gpretty.rb
lucid-0.0.6 lib/lucid/formatter/gpretty.rb
lucid-0.0.5 lib/lucid/formatter/gpretty.rb