-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathreporter.js
34 lines (28 loc) · 966 Bytes
/
reporter.js
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
/**************************************************/
/**
* @author Rajat Verma
* https://www.linkedin.com/in/rajat-v-3b0685128/
* https://github.com/rajatt95
* https://rajatt95.github.io/
*
* Course: Automated Software Testing with Playwright (https://www.udemy.com/course/automated-software-testing-with-playwright/)
* Tutor: Kaniel Outis (https://www.udemy.com/user/shinoku911/)
*/
/**************************************************/
const reporter = require('cucumber-html-reporter')
// These options will be used at the time of HTML Report generation
const options = {
theme: 'bootstrap',
jsonFile: 'cucumber_report.json',
output: 'reports/cucumber_report.html',
reportSuiteAsScenario: true,
scenarioTimestamp: true,
launchReport: false,
metadata: {
'App Version': '2.0.0',
'Test Environment': 'STAGING',
Browser: 'Chrome 101.0.4951.41',
Platform: 'MAC OS Monterary - Version: 12.3.1',
},
}
reporter.generate(options)