playwright-slack-report 1.1.56 → 1.1.57
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 +3 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
# playwright-slack-report  [](https://github.com/ryanrosello-og/playwright-slack-report/blob/master/LICENSE) [](https://coveralls.io/github/ryanrosello-og/playwright-slack-report?branch=main)
|
|
2
|
-
[code quatlity badge][](https://github.com/ryanrosello-og/playwright-slack-report/actions/workflows/github-code-scanning/codeql)
|
|
1
|
+
# playwright-slack-report  [](https://github.com/ryanrosello-og/playwright-slack-report/blob/master/LICENSE) [](https://coveralls.io/github/ryanrosello-og/playwright-slack-report?branch=main)[](https://github.com/ryanrosello-og/playwright-slack-report/actions/workflows/github-code-scanning/codeql)
|
|
3
2
|
|
|
4
3
|
[](https://gitpod.io/#https://github.com/ryanrosello-og/playwright-slack-report)
|
|
5
4
|
|
|
@@ -129,9 +128,9 @@ The final step will be to copy the generated Bot User OAuth Token aka `SLACK_BOT
|
|
|
129
128
|
Playwright now provides a nice way to [merge multiple reports from multiple shards](https://playwright.dev/docs/test-sharding#merging-reports-from-multiple-shards). You can use this feature to generate a single JSON report and then send it to Slack, alleviating the need to have separate messages sent per shard:
|
|
130
129
|
|
|
131
130
|
|
|
132
|
-
`npx playwright merge-reports --reporter json ./all-blob-reports`
|
|
131
|
+
`npx playwright merge-reports --reporter json ./all-blob-reports > merged_tests_results.json`
|
|
133
132
|
|
|
134
|
-
^ It is important that you set the `--reporter` to `json` otherwise the report will not be generated in the correct format.
|
|
133
|
+
^ It is important that you set the `--reporter` to `json` and pipe the results to a json file, otherwise the report will not be generated in the correct format.
|
|
135
134
|
|
|
136
135
|
Next, you will need to configure the cli. See example below:
|
|
137
136
|
|
package/package.json
CHANGED