-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcucumber-html-report.js
More file actions
58 lines (52 loc) · 1.64 KB
/
Copy pathcucumber-html-report.js
File metadata and controls
58 lines (52 loc) · 1.64 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
const report = require("multiple-cucumber-html-reporter");
report.generate({
jsonDir: "cypress/cucumber-json", // ** Path of .json file **//
reportPath: "./reports/cucumber-htmlreport.html",
metadata: {
browser: {
name: "Chrome",
version: "11",
},
device: "Dell Inspiron 15",
platform: {
name: "Windows",
version: "10",
},
},
customData: {
title: "Run info",
data: [
{ label: "Project", value: "Cypress project for The Souled Store" },
{ label: "Release", value: "0.1" },
{ label: "Cycle", value: "A1" },
{ label: "Execution Start Time", value: "20th April 2023, 11:30 AM EST" },
{ label: "Execution End Time", value: "22th April 2023, 11:50 PM EST" },
],
},
});
// const report = require("multiple-cucumber-html-reporter");
// report.generate({
// jsonDir: "./path-to-your-json-output/",
// reportPath: "./path-where-the-report-needs-to-be/",
// metadata: {
// browser: {
// name: "chrome",
// version: "60",
// },
// device: "Local test machine",
// platform: {
// name: "ubuntu",
// version: "16.04",
// },
// },
// customData: {
// title: "Run info",
// data: [
// { label: "Project", value: "Custom project" },
// { label: "Release", value: "1.2.3" },
// { label: "Cycle", value: "B11221.34321" },
// { label: "Execution Start Time", value: "Nov 19th 2017, 02:31 PM EST" },
// { label: "Execution End Time", value: "Nov 19th 2017, 02:56 PM EST" },
// ],
// },
// });