monocart-reporter 1.6.31 → 1.6.32
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 +6 -7
- package/lib/runtime/monocart-reporter.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# Monocart Reporter
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/monocart-reporter)
|
|
4
|
-

|
|
5
|
-

|
|
6
4
|
[](https://www.npmjs.com/package/monocart-reporter)
|
|
7
5
|

|
|
8
6
|
|
|
@@ -308,6 +306,7 @@ module.exports = {
|
|
|
308
306
|
]
|
|
309
307
|
};
|
|
310
308
|
```
|
|
309
|
+
multiple matches example: [collect-data](https://github.com/cenfun/monocart-reporter-test/tree/main/tests/collect-data)
|
|
311
310
|
|
|
312
311
|
### Collect Data from the Annotations
|
|
313
312
|
It should be easier than getting from title. see [custom annotations](https://playwright.dev/docs/test-annotations#custom-annotations) via `test.info().annotations`
|
|
@@ -493,7 +492,7 @@ module.exports = {
|
|
|
493
492
|
]
|
|
494
493
|
};
|
|
495
494
|
```
|
|
496
|
-
see example [remove-secrets](https://github.com/cenfun/monocart-reporter-test/tree/main/tests/remove-secrets)
|
|
495
|
+
see example: [remove-secrets](https://github.com/cenfun/monocart-reporter-test/tree/main/tests/remove-secrets)
|
|
497
496
|
|
|
498
497
|
## Style Tags
|
|
499
498
|
* Add tag to test/describe title ( starts with `@` )
|
|
@@ -842,7 +841,7 @@ test('finally, attach HAR', async () => {
|
|
|
842
841
|
await attachNetworkReport(harPath, test.info());
|
|
843
842
|
});
|
|
844
843
|
```
|
|
845
|
-
Preview [Network HTML Report](https://cenfun.github.io/monocart-reporter/network-
|
|
844
|
+
Preview [Network HTML Report](https://cenfun.github.io/monocart-reporter/network-38e613e8d93547bdb27f/index.html)
|
|
846
845
|
|
|
847
846
|
## Merge Shard Reports
|
|
848
847
|
There will be multiple reports to be generated if Playwright test executes in sharding mode. for example:
|
|
@@ -875,7 +874,7 @@ await merge(reportDataList, {
|
|
|
875
874
|
}
|
|
876
875
|
});
|
|
877
876
|
```
|
|
878
|
-
|
|
877
|
+
Preview [merged report](https://cenfun.github.io/monocart-reporter-test/merged)
|
|
879
878
|
|
|
880
879
|
## onEnd hook
|
|
881
880
|
The `onEnd` function will be executed after report generated. Arguments:
|
|
@@ -943,12 +942,12 @@ check example: [xray](https://github.com/cenfun/monocart-reporter-test/tree/main
|
|
|
943
942
|

|
|
944
943
|
|
|
945
944
|
## Discord Integration
|
|
946
|
-
Using [Discord webhooks](https://discord.com/developers/docs/resources/webhook) to post messages to channels. example: [discord-webhook](https://github.com/cenfun/monocart-reporter-test/tree/main/integrations/discord-webhook)
|
|
945
|
+
Using [Discord webhooks](https://discord.com/developers/docs/resources/webhook) to post messages to channels. check example: [discord-webhook](https://github.com/cenfun/monocart-reporter-test/tree/main/integrations/discord-webhook)
|
|
947
946
|
|
|
948
947
|

|
|
949
948
|
|
|
950
949
|
## Teams Integration
|
|
951
|
-
Please create an [Incoming Webhooks](https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook) for the channel first. example: [teams-webhook](https://github.com/cenfun/monocart-reporter-test/tree/main/integrations/teams-webhook)
|
|
950
|
+
Please create an [Incoming Webhooks](https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook) for the channel first. check example: [teams-webhook](https://github.com/cenfun/monocart-reporter-test/tree/main/integrations/teams-webhook)
|
|
952
951
|
|
|
953
952
|

|
|
954
953
|
|