Sha256: 2f03f5afedd03f93a46dc63fee503cf3cce18e7d32ba697767cfcd9fc32234c5

Contents?: true

Size: 850 Bytes

Versions: 72

Compression:

Stored size: 850 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 table(rows, line)
      end

      def py_string(string, line)
      end

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

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
gherkin-1.0.14 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.14-i386-mswin32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.14-i386-mingw32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.14-java lib/gherkin/tools/stats_listener.rb
gherkin-1.0.13 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.13-i386-mswin32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.13-i386-mingw32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.13-java lib/gherkin/tools/stats_listener.rb
gherkin-1.0.12 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.12-i386-mswin32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.12-i386-mingw32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.12-java lib/gherkin/tools/stats_listener.rb
gherkin-1.0.11 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.11-i386-mswin32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.11-i386-mingw32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.11-java lib/gherkin/tools/stats_listener.rb
gherkin-1.0.10 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.10-i386-mswin32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.10-i386-mingw32 lib/gherkin/tools/stats_listener.rb
gherkin-1.0.10-java lib/gherkin/tools/stats_listener.rb