Class: Gherkin::Tools::Stats
Instance Method Summary collapse
Methods inherited from Files
Constructor Details
This class inherits a constructor from Gherkin::Tools::Files
Instance Method Details
#run ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/gherkin/tools/stats.rb', line 8 def run formatter = StatsFormatter.new each do |f| parser = Gherkin::Parser::Parser.new(formatter, true) parser.parse(IO.read(f), f, 0) end puts "Features: #{listener.features}" puts "Scenarios: #{listener.scenarios}" puts "Steps: #{listener.steps}" end |