-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreport.js
More file actions
34 lines (28 loc) · 733 Bytes
/
Copy pathreport.js
File metadata and controls
34 lines (28 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const fs = require("fs-extra");
const dir = "./cucumber_report/html";
if (fs.existsSync(dir)) {
fs.emptyDirSync(dir);
}
fs.mkdirSync(dir);
const reporter = require("cucumber-html-reporter");
const options = {
theme: "bootstrap",
jsonDir: "report",
output: "report/html/cucumber_report.html",
screenshotsDirectory: "screenshots/",
storeScreenshots: true,
reportSuiteAsScenarios: true,
scenarioTimestamp: true,
lauchReport: true,
name: "project name",
brandTitle: "smoke test",
metadata: {
"App Version": "0.3.2",
"Test Environment": "STAGING",
Browser: "Chrome 81.0.2840.98",
Platform: "Windows 10",
Parallel: "Scenarios",
Executed: "Remote",
},
};
reporter.generate(options);