Sha256: acbd6951f1f776300d06bc5b087f0c4851ce1743ae077043415ca614a6a21e3b
Contents?: true
Size: 1000 Bytes
Versions: 10
Compression:
Stored size: 1000 Bytes
Contents
require 'gherkin/native' # encoding: utf-8 module Gherkin module Tools class StatsListener implements 'gherkin.Listener' 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, description, line) @features += 1 end def background(keyword, name, description, line) end def scenario(keyword, name, description, line) @scenarios += 1 end def scenario_outline(keyword, name, description, line) end def examples(keyword, name, description, 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
10 entries across 10 versions & 1 rubygems