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