ci-slack-reporter 1.0.7-a3 → 1.0.7-a4
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 +28 -0
- package/assets/demo.png +0 -0
- package/package.json +1 -1
package/README.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
|
2
|
+
Mocha/Cypress reporter to post tests results directly to Slack
|
3
|
+
|
4
|
+
Usable for CI services like [Woodpecker](https://devforth.io/blog/step-by-step-guide-to-modern-secure-ci-setup/)
|
5
|
+
|
6
|
+
Read [Guide how to Setup with Woodpecker](https://devforth.io/blog/run-cypress-auto-tests-in-woodpecker-ci/)
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
# Example
|
11
|
+
```
|
12
|
+
pipeline:
|
13
|
+
websitesTest:
|
14
|
+
image: cypress/included:10.2.0
|
15
|
+
commands:
|
16
|
+
- npm install
|
17
|
+
- npm install ci-slack-reporter
|
18
|
+
- export CI_SLACK_REPORTER_ICON_URL=https://raw.githubusercontent.com/devforth/ci-slack-reporter/master/assets/patron_autotester.png
|
19
|
+
- export CI_SLACK_REPORTER_USERNAME="Patron Autotester"
|
20
|
+
- export CI_SLACK_REPORTER_VIDEO_URL=https://rp-e2e-test-recordings.s3.eu-central-1.amazonaws.com/output${CI_BUILD_NUMBER}.mp4
|
21
|
+
- export CI_SLACK_REPORTER_WEBHOOK=https://hooks.slack.com/services/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
|
22
|
+
- cypress run --reporter ci-slack-reporter --spec "cypress/e2e/$${TEST_NAME}.cy.js"
|
23
|
+
|
24
|
+
```
|
25
|
+
|
26
|
+
Result:
|
27
|
+
|
28
|
+

|
package/assets/demo.png
ADDED
Binary file
|