module CukeParser
Public Class Methods
generate_report(cuke,options)
click to toggle source
# File lib/cuke_parser.rb, line 44 def CukeParser.generate_report(cuke,options) reporter = ReportEngine::HtmlReporter.new(options[:output_dir],cuke.date.gsub("-","_")+"_"+cuke.time.gsub("-","_"),options[:json_file]) reporter.generate_report(cuke,options[:title]) end
html(file_path)
click to toggle source
# File lib/cuke_parser.rb, line 39 def CukeParser.html(file_path) html_parser = ParseEngine::HtmlParser.new html_parser.get_build(file_path) end
json(file_path)
click to toggle source
# File lib/cuke_parser.rb, line 18 def CukeParser.json(file_path) json_parser = ParseEngine::JsonParser.new json_parser.get_build(file_path,"cucumber") end
json_complete(file_path,cuke_data,env_data)
click to toggle source
# File lib/cuke_parser.rb, line 28 def CukeParser.json_complete(file_path,cuke_data,env_data) json_parser = ParseEngine::JsonParser.new json_parser.get_complete_build(file_path,cuke_data,env_data) end
json_custom(file_path,cuke_data)
click to toggle source
# File lib/cuke_parser.rb, line 23 def CukeParser.json_custom(file_path,cuke_data) json_parser = ParseEngine::JsonParser.new json_parser.get_build(file_path,cuke_data) end
json_jenkins_list(file_path,timestamp)
click to toggle source
# File lib/cuke_parser.rb, line 34 def CukeParser.json_jenkins_list(file_path,timestamp) json_parser = ParseEngine::JsonParser.new json_parser.get_jenkins_build_list(file_path,timestamp) end
write_build(cuke,file)
click to toggle source
# File lib/cuke_parser.rb, line 13 def CukeParser.write_build(cuke,file) parser_utils = ParseEngine::ParserUtils.new parser_utils.ugly(cuke,file) end
write_pretty(cuke,file)
click to toggle source
# File lib/cuke_parser.rb, line 8 def CukeParser.write_pretty(cuke,file) parser_utils = ParseEngine::ParserUtils.new parser_utils.pretty(cuke,file) end