cucumber-html-report
Version:
Convert cucumber json reports to a pretty html report.
970 lines • 30.9 kB
JSON
[
{
"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": 5310037
},
"hidden": true,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:15"
}
},
{
"arguments": [],
"keyword": "Given ",
"name": "a JSON file generated by cucumber",
"result": {
"status": "passed",
"duration": 1132441
},
"line": 7,
"match": {
"location": "/Users/username/dev/cws/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": 177000
},
"line": 8,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:35"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "no template is provided",
"result": {
"status": "passed",
"duration": 1115858
},
"line": 9,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:40"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I run the report generator",
"result": {
"status": "passed",
"duration": 33833008
},
"line": 10,
"match": {
"location": "/Users/username/dev/cws/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": 526449
},
"line": 11,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:61"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 1186947
},
"hidden": true,
"embeddings": [
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogZGFyd2lu",
"mime_type": "text/plain"
},
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTUuNS4w",
"mime_type": "text/plain"
}
],
"match": {
"location": "/Users/username/dev/cws/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": 1842228
},
"hidden": true,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:15"
}
},
{
"arguments": [],
"keyword": "Given ",
"name": "a JSON file generated by cucumber",
"result": {
"status": "passed",
"duration": 1405752
},
"line": 14,
"match": {
"location": "/Users/username/dev/cws/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": 504247
},
"line": 15,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:35"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "a custom template is provided",
"result": {
"status": "passed",
"duration": 529057
},
"line": 16,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:50"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I run the report generator",
"result": {
"status": "passed",
"duration": 5643960
},
"line": 17,
"match": {
"location": "/Users/username/dev/cws/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": 191210
},
"line": 18,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:61"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 320992
},
"hidden": true,
"embeddings": [
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogZGFyd2lu",
"mime_type": "text/plain"
},
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTUuNS4w",
"mime_type": "text/plain"
}
],
"match": {
"location": "/Users/username/dev/cws/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": 838312
},
"hidden": true,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:15"
}
},
{
"arguments": [],
"keyword": "Given ",
"name": "no JSON file is provided",
"result": {
"status": "passed",
"duration": 228354
},
"line": 21,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:67"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I run the report generator",
"result": {
"status": "passed",
"duration": 6212547
},
"line": 22,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:56"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I should get an error message",
"result": {
"status": "passed",
"duration": 452436
},
"line": 23,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:72"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 270849
},
"hidden": true,
"embeddings": [
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogZGFyd2lu",
"mime_type": "text/plain"
},
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTUuNS4w",
"mime_type": "text/plain"
}
],
"match": {
"location": "/Users/username/dev/cws/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": 675399
},
"hidden": true,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:15"
}
},
{
"arguments": [],
"keyword": "Given ",
"name": "a JSON file generated by cucumber",
"result": {
"status": "passed",
"duration": 383130
},
"line": 26,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:29"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "an invalid template is provided",
"result": {
"status": "passed",
"duration": 262032
},
"line": 27,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:45"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I run the report generator",
"result": {
"status": "passed",
"duration": 1287861
},
"line": 28,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:56"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "I should get an error message",
"result": {
"status": "passed",
"duration": 333237
},
"line": 29,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:72"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 205161
},
"hidden": true,
"embeddings": [
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogZGFyd2lu",
"mime_type": "text/plain"
},
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTUuNS4w",
"mime_type": "text/plain"
}
],
"match": {
"location": "/Users/username/dev/cws/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": "/Users/username/dev/cws/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": 1803458
},
"hidden": true,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:15"
}
},
{
"arguments": [],
"keyword": "Given ",
"name": "a valid JSON file",
"result": {
"status": "passed",
"duration": 679939
},
"line": 4,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/summary.steps.js:8"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "I calculate the summary",
"result": {
"status": "passed",
"duration": 238072
},
"line": 5,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/summary.steps.js:13"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "it should return number of features",
"result": {
"status": "passed",
"duration": 1854524
},
"line": 6,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/summary.steps.js:18"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "it should return number of scenarios",
"result": {
"status": "passed",
"duration": 176793
},
"line": 7,
"match": {
"location": "/Users/username/dev/cws/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": 174367
},
"line": 8,
"match": {
"location": "/Users/username/dev/cws/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": 164403
},
"line": 9,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/summary.steps.js:32"
}
},
{
"arguments": [],
"keyword": "And ",
"name": "it should return the status",
"result": {
"status": "passed",
"duration": 217327
},
"line": 10,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/summary.steps.js:37"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 361347
},
"hidden": true,
"embeddings": [
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogZGFyd2lu",
"mime_type": "text/plain"
},
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTUuNS4w",
"mime_type": "text/plain"
}
],
"match": {
"location": "/Users/username/dev/cws/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": 517341
},
"hidden": true,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:15"
}
},
{
"arguments": [],
"keyword": "Given ",
"name": "a feature with a passing scenario",
"result": {
"status": "passed",
"duration": 516858
},
"line": 13,
"match": {
"location": "/Users/username/dev/cws/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": 281813
},
"line": 14,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/summary.steps.js:57"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 306979
},
"hidden": true,
"embeddings": [
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogZGFyd2lu",
"mime_type": "text/plain"
},
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTUuNS4w",
"mime_type": "text/plain"
}
],
"match": {
"location": "/Users/username/dev/cws/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": 357391
},
"hidden": true,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:15"
}
},
{
"arguments": [],
"keyword": "Given ",
"name": "a feature with a failing scenario",
"result": {
"status": "passed",
"duration": 511007
},
"line": 17,
"match": {
"location": "/Users/username/dev/cws/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": 381018
},
"line": 18,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/summary.steps.js:57"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 572160
},
"hidden": true,
"embeddings": [
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogZGFyd2lu",
"mime_type": "text/plain"
},
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTUuNS4w",
"mime_type": "text/plain"
}
],
"match": {
"location": "/Users/username/dev/cws/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": 578515
},
"hidden": true,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:15"
}
},
{
"arguments": [],
"keyword": "Given ",
"name": "a feature with a passing scenario",
"result": {
"status": "passed",
"duration": 111354
},
"line": 21,
"match": {
"location": "/Users/username/dev/cws/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": 317407
},
"line": 22,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/summary.steps.js:63"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 256515
},
"hidden": true,
"embeddings": [
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogZGFyd2lu",
"mime_type": "text/plain"
},
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTUuNS4w",
"mime_type": "text/plain"
}
],
"match": {
"location": "/Users/username/dev/cws/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": 420989
},
"hidden": true,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:15"
}
},
{
"arguments": [],
"keyword": "Given ",
"name": "a feature with a failing scenario",
"result": {
"status": "passed",
"duration": 178399
},
"line": 25,
"match": {
"location": "/Users/username/dev/cws/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": 655831
},
"line": 26,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/summary.steps.js:63"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 214940
},
"hidden": true,
"embeddings": [
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogZGFyd2lu",
"mime_type": "text/plain"
},
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTUuNS4w",
"mime_type": "text/plain"
}
],
"match": {
"location": "/Users/username/dev/cws/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": 3497100
},
"hidden": true,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:15"
}
},
{
"arguments": [],
"keyword": "Given ",
"name": "a feature with a skipped scenario",
"result": {
"status": "passed",
"duration": 524939
},
"line": 29,
"match": {
"location": "/Users/username/dev/cws/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": 134535
},
"line": 30,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/summary.steps.js:63"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 544087
},
"hidden": true,
"embeddings": [
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogZGFyd2lu",
"mime_type": "text/plain"
},
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTUuNS4w",
"mime_type": "text/plain"
}
],
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:22"
}
}
],
"tags": [],
"type": "scenario"
},
{
"id": "report-summary-module;get-status-of-a-undefined-scenario",
"keyword": "Scenario",
"line": 32,
"name": "Get status of a undefined scenario",
"steps": [
{
"arguments": [],
"keyword": "Before ",
"result": {
"status": "passed",
"duration": 675902
},
"hidden": true,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/report.steps.js:15"
}
},
{
"arguments": [],
"keyword": "Given ",
"name": "a feature with a undefined scenario",
"result": {
"status": "undefined"
},
"line": 33
},
{
"arguments": [],
"keyword": "Then ",
"name": "it should return status \"failed\" for scenario",
"result": {
"status": "skipped"
},
"line": 34,
"match": {
"location": "/Users/username/dev/cws/cucumber-html-report/features/step_definitions/summary.steps.js:63"
}
},
{
"arguments": [],
"keyword": "After ",
"result": {
"status": "passed",
"duration": 295902
},
"hidden": true,
"embeddings": [
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBQbGF0Zm9ybTogZGFyd2lu",
"mime_type": "text/plain"
},
{
"data": "T3BlcmF0aW5nIFN5c3RlbSBSZWxlYXNlIFZlcnNpb24gMTUuNS4w",
"mime_type": "text/plain"
}
],
"match": {
"location": "/Users/username/dev/cws/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": "/Users/username/dev/cws/cucumber-html-report/features/summary.feature"
}
]