Sha256: 62a917d8d74f0dd8dbc490db32e53aab141863945a8fa1b70e15e207fd949bb4

Contents?: true

Size: 872 Bytes

Versions: 40

Compression:

Stored size: 872 Bytes

Contents

# encoding: utf-8
module Gherkin
  module Tools
    class StatsListener
      attr_reader :features, :scenarios, :steps

      def initialize
        @features  = 0
        @scenarios = 0
        @steps     = 0
      end

      def tag(name, line)
      end

      def comment(content, line)
      end

      def feature(keyword, name, line)
        @features += 1
      end

      def background(keyword, name, line)
      end

      def scenario(keyword, name, line)
        @scenarios += 1
      end

      def scenario_outline(keyword, name, line)
      end

      def examples(keyword, name, line)
      end

      def step(keyword, name, line)
        @steps += 1
      end

      def row(row, line)
      end

      def py_string(string, line)
      end

      def syntax_error(state, event, legal_events, line)
      end

      def eof
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
gherkin-1.0.29 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.29-i386-mswin32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.29-i386-mingw32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.29-java lib/gherkin/tools/stats_listener.rb
gherkin-1.0.28 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.28-i386-mswin32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.28-i386-mingw32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.28-java lib/gherkin/tools/stats_listener.rb
gherkin-1.0.27 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.27-i386-mswin32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.27-i386-mingw32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.27-java lib/gherkin/tools/stats_listener.rb
gherkin-1.0.26 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.26-i386-mswin32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.26-i386-mingw32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.26-java lib/gherkin/tools/stats_listener.rb
gherkin-1.0.25 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.25-i386-mswin32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.25-i386-mingw32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.25-java lib/gherkin/tools/stats_listener.rb