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