Sha256: da47b20b7890a54c3510a60bc05ac6a84cc9fe8d5ac4f409fd82e83d9748934c

Contents?: true

Size: 936 Bytes

Versions: 7

Compression:

Stored size: 936 Bytes

Contents

require 'lucid/formatter/standard'

module Lucid
  module Formatter
    class Condensed < Lucid::Formatter::Standard
      
      def scenario_name(keyword, name, file_colon_line, source_indent)
        super
      end

      def feature_name(keyword, name)
        name = name.split(/\n/)[0]
        @io.puts("#{keyword}: #{name}")
        @io.flush
      end

      def background_name(*args)
        return
      end

      def before_step( step )
        @io.print "\r... #{step.name}"
        @io.flush
      end

      def after_step( step )
        @io.print " "*(step.name.length+4)
        @io.flush
      end

      def before_step_result( *args )
        @io.printf "\r"
        super
      end

      def step_name(*args)
        @hide_this_step=true if args[2] == :passed
        super
      end

      def comment_line(comment_line)
        return
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lucid-0.5.1 lib/lucid/formatter/condensed.rb
lucid-0.4.1 lib/lucid/formatter/condensed.rb
lucid-0.4.0 lib/lucid/formatter/condensed.rb
lucid-0.3.3 lib/lucid/formatter/condensed.rb
lucid-0.3.0 lib/lucid/formatter/condensed.rb
lucid-0.2.1 lib/lucid/formatter/condensed.rb
lucid-0.2.0 lib/lucid/formatter/condensed.rb