UNPKG

cucumber-html-report

Version:

Convert cucumber json reports to a pretty html report.

906 lines (905 loc) 29 kB
[ { "description": " As a cucumber user\n I want to generate HTML reports from cucumber JSON report files\n So that I can get a better overview of my specifications", "elements": [ { "id": "report-generator;generate-report-using-default-template", "keyword": "Scenario", "line": 6, "name": "Generate report using default template", "steps": [ { "arguments": [], "keyword": "Before ", "result": { "status": "passed", "duration": 5415985 }, "hidden": true, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:15" } }, { "arguments": [], "keyword": "Given ", "name": "a JSON file generated by cucumber", "result": { "status": "passed", "duration": 1234912 }, "line": 7, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:29" } }, { "arguments": [], "keyword": "And ", "name": "the destination directory is set to \"reports\"", "result": { "status": "passed", "duration": 165420 }, "line": 8, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:35" } }, { "arguments": [], "keyword": "And ", "name": "no template is provided", "result": { "status": "passed", "duration": 1228875 }, "line": 9, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:40" } }, { "arguments": [], "keyword": "When ", "name": "I run the report generator", "result": { "status": "passed", "duration": 29070395 }, "line": 10, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:56" } }, { "arguments": [], "keyword": "Then ", "name": "I should get a HTML report in the \"reports\" directory", "result": { "status": "passed", "duration": 397550 }, "line": 11, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:61" } }, { "arguments": [], "keyword": "After ", "result": { "status": "passed", "duration": 755860 }, "hidden": true, "embeddings": [ { "data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogd2luMzI=", "mime_type": "text/plain" }, { "data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTAuMC4xMDU4Ng==", "mime_type": "text/plain" } ], "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:22" } } ], "tags": [], "type": "scenario" }, { "id": "report-generator;generate-report-using-custom-template", "keyword": "Scenario", "line": 13, "name": "Generate report using custom template", "steps": [ { "arguments": [], "keyword": "Before ", "result": { "status": "passed", "duration": 827098 }, "hidden": true, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:15" } }, { "arguments": [], "keyword": "Given ", "name": "a JSON file generated by cucumber", "result": { "status": "passed", "duration": 446452 }, "line": 14, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:29" } }, { "arguments": [], "keyword": "And ", "name": "the destination directory is set to \"reports\"", "result": { "status": "passed", "duration": 530067 }, "line": 15, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:35" } }, { "arguments": [], "keyword": "And ", "name": "a custom template is provided", "result": { "status": "passed", "duration": 288579 }, "line": 16, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:50" } }, { "arguments": [], "keyword": "When ", "name": "I run the report generator", "result": { "status": "passed", "duration": 5686754 }, "line": 17, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:56" } }, { "arguments": [], "keyword": "Then ", "name": "I should get a HTML report in the \"reports\" directory", "result": { "status": "passed", "duration": 218245 }, "line": 18, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:61" } }, { "arguments": [], "keyword": "After ", "result": { "status": "passed", "duration": 189569 }, "hidden": true, "embeddings": [ { "data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogd2luMzI=", "mime_type": "text/plain" }, { "data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTAuMC4xMDU4Ng==", "mime_type": "text/plain" } ], "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:22" } } ], "tags": [], "type": "scenario" }, { "id": "report-generator;verify-source-json-exists", "keyword": "Scenario", "line": 20, "name": "Verify source JSON exists", "steps": [ { "arguments": [], "keyword": "Before ", "result": { "status": "passed", "duration": 438906 }, "hidden": true, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:15" } }, { "arguments": [], "keyword": "Given ", "name": "no JSON file is provided", "result": { "status": "passed", "duration": 152742 }, "line": 21, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:67" } }, { "arguments": [], "keyword": "When ", "name": "I run the report generator", "result": { "status": "passed", "duration": 2264861 }, "line": 22, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:56" } }, { "arguments": [], "keyword": "Then ", "name": "I should get an error message", "result": { "status": "passed", "duration": 190776 }, "line": 23, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:72" } }, { "arguments": [], "keyword": "After ", "result": { "status": "passed", "duration": 233640 }, "hidden": true, "embeddings": [ { "data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogd2luMzI=", "mime_type": "text/plain" }, { "data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTAuMC4xMDU4Ng==", "mime_type": "text/plain" } ], "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:22" } } ], "tags": [], "type": "scenario" }, { "id": "report-generator;verify-template-exists", "keyword": "Scenario", "line": 25, "name": "Verify template exists", "steps": [ { "arguments": [], "keyword": "Before ", "result": { "status": "passed", "duration": 394230 }, "hidden": true, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:15" } }, { "arguments": [], "keyword": "Given ", "name": "a JSON file generated by cucumber", "result": { "status": "passed", "duration": 344122 }, "line": 26, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:29" } }, { "arguments": [], "keyword": "And ", "name": "an invalid template is provided", "result": { "status": "passed", "duration": 150629 }, "line": 27, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:45" } }, { "arguments": [], "keyword": "When ", "name": "I run the report generator", "result": { "status": "passed", "duration": 1106621 }, "line": 28, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:56" } }, { "arguments": [], "keyword": "Then ", "name": "I should get an error message", "result": { "status": "passed", "duration": 118329 }, "line": 29, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:72" } }, { "arguments": [], "keyword": "After ", "result": { "status": "passed", "duration": 131309 }, "hidden": true, "embeddings": [ { "data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogd2luMzI=", "mime_type": "text/plain" }, { "data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTAuMC4xMDU4Ng==", "mime_type": "text/plain" } ], "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:22" } } ], "tags": [], "type": "scenario" } ], "id": "report-generator", "keyword": "Feature", "line": 1, "name": "Report Generator", "tags": [], "uri": "C:/DevelopmentNode/cucumber-html-report/features/report.feature" }, { "elements": [ { "id": "report-summary-module;calculate-summary-for-a-report", "keyword": "Scenario", "line": 3, "name": "Calculate summary for a report", "steps": [ { "arguments": [], "keyword": "Before ", "result": { "status": "passed", "duration": 592854 }, "hidden": true, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:15" } }, { "arguments": [], "keyword": "Given ", "name": "a valid JSON file", "result": { "status": "passed", "duration": 1293171 }, "line": 4, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\summary.steps.js:8" } }, { "arguments": [], "keyword": "When ", "name": "I calculate the summary", "result": { "status": "passed", "duration": 323897 }, "line": 5, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\summary.steps.js:13" } }, { "arguments": [], "keyword": "Then ", "name": "it should return number of features", "result": { "status": "passed", "duration": 2153474 }, "line": 6, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\summary.steps.js:18" } }, { "arguments": [], "keyword": "And ", "name": "it should return number of scenarios", "result": { "status": "passed", "duration": 160590 }, "line": 7, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\summary.steps.js:22" } }, { "arguments": [], "keyword": "And ", "name": "it should return number of passed scenarios", "result": { "status": "passed", "duration": 227602 }, "line": 8, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\summary.steps.js:27" } }, { "arguments": [], "keyword": "And ", "name": "it should return number of failed scenarios", "result": { "status": "passed", "duration": 217339 }, "line": 9, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\summary.steps.js:32" } }, { "arguments": [], "keyword": "And ", "name": "it should return the status", "result": { "status": "passed", "duration": 363440 }, "line": 10, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\summary.steps.js:37" } }, { "arguments": [], "keyword": "After ", "result": { "status": "passed", "duration": 153346 }, "hidden": true, "embeddings": [ { "data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogd2luMzI=", "mime_type": "text/plain" }, { "data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTAuMC4xMDU4Ng==", "mime_type": "text/plain" } ], "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:22" } } ], "tags": [], "type": "scenario" }, { "id": "report-summary-module;get-status-of-a-passing-feature", "keyword": "Scenario", "line": 12, "name": "Get status of a passing feature", "steps": [ { "arguments": [], "keyword": "Before ", "result": { "status": "passed", "duration": 516484 }, "hidden": true, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:15" } }, { "arguments": [], "keyword": "Given ", "name": "a feature with a passing scenario", "result": { "status": "passed", "duration": 1610729 }, "line": 13, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\summary.steps.js:42" } }, { "arguments": [], "keyword": "Then ", "name": "it should return status \"passed\" for feature", "result": { "status": "passed", "duration": 220358 }, "line": 14, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\summary.steps.js:57" } }, { "arguments": [], "keyword": "After ", "result": { "status": "passed", "duration": 247526 }, "hidden": true, "embeddings": [ { "data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogd2luMzI=", "mime_type": "text/plain" }, { "data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTAuMC4xMDU4Ng==", "mime_type": "text/plain" } ], "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:22" } } ], "tags": [], "type": "scenario" }, { "id": "report-summary-module;get-status-of-a-failing-feature", "keyword": "Scenario", "line": 16, "name": "Get status of a failing feature", "steps": [ { "arguments": [], "keyword": "Before ", "result": { "status": "passed", "duration": 384571 }, "hidden": true, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:15" } }, { "arguments": [], "keyword": "Given ", "name": "a feature with a failing scenario", "result": { "status": "passed", "duration": 720240 }, "line": 17, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\summary.steps.js:47" } }, { "arguments": [], "keyword": "Then ", "name": "it should return status \"failed\" for feature", "result": { "status": "passed", "duration": 150327 }, "line": 18, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\summary.steps.js:57" } }, { "arguments": [], "keyword": "After ", "result": { "status": "passed", "duration": 128593 }, "hidden": true, "embeddings": [ { "data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogd2luMzI=", "mime_type": "text/plain" }, { "data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTAuMC4xMDU4Ng==", "mime_type": "text/plain" } ], "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:22" } } ], "tags": [], "type": "scenario" }, { "id": "report-summary-module;get-status-of-a-passing-scenario", "keyword": "Scenario", "line": 20, "name": "Get status of a passing scenario", "steps": [ { "arguments": [], "keyword": "Before ", "result": { "status": "passed", "duration": 535200 }, "hidden": true, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:15" } }, { "arguments": [], "keyword": "Given ", "name": "a feature with a passing scenario", "result": { "status": "passed", "duration": 168137 }, "line": 21, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\summary.steps.js:42" } }, { "arguments": [], "keyword": "Then ", "name": "it should return status \"passed\" for scenario", "result": { "status": "passed", "duration": 382156 }, "line": 22, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\summary.steps.js:63" } }, { "arguments": [], "keyword": "After ", "result": { "status": "passed", "duration": 133724 }, "hidden": true, "embeddings": [ { "data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogd2luMzI=", "mime_type": "text/plain" }, { "data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTAuMC4xMDU4Ng==", "mime_type": "text/plain" } ], "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:22" } } ], "tags": [], "type": "scenario" }, { "id": "report-summary-module;get-status-of-a-failed-scenario", "keyword": "Scenario", "line": 24, "name": "Get status of a failed scenario", "steps": [ { "arguments": [], "keyword": "Before ", "result": { "status": "passed", "duration": 595873 }, "hidden": true, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:15" } }, { "arguments": [], "keyword": "Given ", "name": "a feature with a failing scenario", "result": { "status": "passed", "duration": 118329 }, "line": 25, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\summary.steps.js:47" } }, { "arguments": [], "keyword": "Then ", "name": "it should return status \"failed\" for scenario", "result": { "status": "passed", "duration": 214623 }, "line": 26, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\summary.steps.js:63" } }, { "arguments": [], "keyword": "After ", "result": { "status": "passed", "duration": 129800 }, "hidden": true, "embeddings": [ { "data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogd2luMzI=", "mime_type": "text/plain" }, { "data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTAuMC4xMDU4Ng==", "mime_type": "text/plain" } ], "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:22" } } ], "tags": [], "type": "scenario" }, { "id": "report-summary-module;get-status-of-a-skipped-scenario", "keyword": "Scenario", "line": 28, "name": "Get status of a skipped scenario", "steps": [ { "arguments": [], "keyword": "Before ", "result": { "status": "passed", "duration": 620324 }, "hidden": true, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:15" } }, { "arguments": [], "keyword": "Given ", "name": "a feature with a skipped scenario", "result": { "status": "passed", "duration": 675564 }, "line": 29, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\summary.steps.js:52" } }, { "arguments": [], "keyword": "Then ", "name": "it should return status \"failed\" for scenario", "result": { "status": "passed", "duration": 112895 }, "line": 30, "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\summary.steps.js:63" } }, { "arguments": [], "keyword": "After ", "result": { "status": "passed", "duration": 213416 }, "hidden": true, "embeddings": [ { "data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogd2luMzI=", "mime_type": "text/plain" }, { "data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTAuMC4xMDU4Ng==", "mime_type": "text/plain" } ], "match": { "location": "C:\\DevelopmentNode\\cucumber-html-report\\features\\step_definitions\\report.steps.js:22" } } ], "tags": [], "type": "scenario" } ], "id": "report-summary-module", "keyword": "Feature", "line": 1, "name": "Report Summary module", "tags": [], "uri": "C:/DevelopmentNode/cucumber-html-report/features/summary.feature" } ]