class Cucumber::Formatter::SimpleCSV
Simple CSV formatter
Attributes
runtime[R]
Public Class Methods
new(runtime, path_or_io, options)
click to toggle source
# File lib/cucumber/formatter/simplecsv.rb, line 12 def initialize(runtime, path_or_io, options) @runtime = runtime @io = ensure_io(path_or_io) @options = options end
Public Instance Methods
feature_name(keyword, name)
click to toggle source
# File lib/cucumber/formatter/simplecsv.rb, line 18 def feature_name(keyword, name) @feature = "#{keyword}: #{name.split("\n")[0]}" @io.puts @feature @io.flush end
scenario_name(keyword, name, file_colon_line, _source_indent)
click to toggle source
# File lib/cucumber/formatter/simplecsv.rb, line 24 def scenario_name(keyword, name, file_colon_line, _source_indent) @scenario = "#{keyword}: #{name}" @io.puts "#{@scenario},#{file_colon_line}" @io.flush end