monocart-reporter 2.9.0 → 2.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -91,8 +91,10 @@ Playwright Docs [https://playwright.dev/docs/test-reporters](https://playwright.
|
|
|
91
91
|
- path-to/your-filename.html
|
|
92
92
|
Single HTML file (data compressed), easy to transfer/deploy or open directly anywhere
|
|
93
93
|
> Note: All attachments (screenshots images/videos) will be linked with relative path in report.
|
|
94
|
-
- path-to/your-filename.json
|
|
94
|
+
- path-to/your-filename.json (requires option `json` is true)
|
|
95
95
|
Separated data file which can be used for debugging or data provider (It's included in the above HTML and compressed).
|
|
96
|
+
- path-to/your-filename.zip (requires option `zip` is true)
|
|
97
|
+
Zip file for merging reports
|
|
96
98
|
|
|
97
99
|
## Reporter Options
|
|
98
100
|
- Default options: [lib/default/options.js](./lib/default/options.js)
|
|
@@ -1026,6 +1028,11 @@ const reportDataList = [
|
|
|
1026
1028
|
'path-to/shard1/index.json',
|
|
1027
1029
|
'path-to/shard2/index.json',
|
|
1028
1030
|
'path-to/shard3/index.json'
|
|
1031
|
+
|
|
1032
|
+
// Or load zip file directly if the output files is zipped
|
|
1033
|
+
// 'path-to/shard1/index.zip',
|
|
1034
|
+
// 'path-to/shard2/index.zip',
|
|
1035
|
+
// 'path-to/shard3/index.zip'
|
|
1029
1036
|
];
|
|
1030
1037
|
|
|
1031
1038
|
await merge(reportDataList, {
|
|
@@ -1036,6 +1043,7 @@ await merge(reportDataList, {
|
|
|
1036
1043
|
}
|
|
1037
1044
|
});
|
|
1038
1045
|
```
|
|
1046
|
+
|
|
1039
1047
|
> Note: The coverage reports will be merged automatically if we specify the `raw` report in coverage options:
|
|
1040
1048
|
```js
|
|
1041
1049
|
// global coverage options
|
|
@@ -1043,6 +1051,8 @@ coverage: {
|
|
|
1043
1051
|
reports: [
|
|
1044
1052
|
// for merging coverage reports
|
|
1045
1053
|
'raw'
|
|
1054
|
+
// we can merge and zip the raw report files
|
|
1055
|
+
// ['raw', { merge: true, zip: true }]
|
|
1046
1056
|
]
|
|
1047
1057
|
}
|
|
1048
1058
|
```
|