Module: CukeParser
- Defined in:
- lib/cuke_parser.rb,
lib/cuke_model/step.rb,
lib/cuke_model/suite.rb,
lib/cuke_model/feature.rb,
lib/cuke_model/scenario.rb,
lib/report_engine/home_page.rb,
lib/parse_engine/html_parser.rb,
lib/parse_engine/json_parser.rb,
lib/parse_engine/parser_utils.rb,
lib/report_engine/feature_page.rb,
lib/report_engine/html_reporter.rb,
lib/report_engine/reporter_utils.rb
Defined Under Namespace
Modules: CukeModel, ParseEngine, ReportEngine
Class Method Summary
collapse
Class Method Details
.generate_report(cuke, options) ⇒ Object
44
45
46
47
|
# 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) ⇒ Object
.json(file_path) ⇒ Object
.json_complete(file_path, cuke_data, env_data) ⇒ Object
28
29
30
31
|
# 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) ⇒ Object
23
24
25
26
|
# 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) ⇒ Object
34
35
36
37
|
# 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) ⇒ Object
13
14
15
16
|
# 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) ⇒ Object
8
9
10
11
|
# File 'lib/cuke_parser.rb', line 8
def CukeParser.write_pretty(cuke,file)
parser_utils = ParseEngine::ParserUtils.new
parser_utils.pretty(cuke,file)
end
|