https://github.com/devforth/ci-slack-reporter
Mocha/Cypress reporter to post tests results directly to Slack
https://github.com/devforth/ci-slack-reporter
Last synced: 4 months ago
JSON representation
Mocha/Cypress reporter to post tests results directly to Slack
- Host: GitHub
- URL: https://github.com/devforth/ci-slack-reporter
- Owner: devforth
- Created: 2022-06-23T20:33:19.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-15T19:59:37.000Z (almost 3 years ago)
- Last Synced: 2025-02-09T05:28:01.458Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 229 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Mocha/Cypress reporter to post tests results directly to Slack
Usable for CI services like [Woodpecker](https://devforth.io/blog/step-by-step-guide-to-modern-secure-ci-setup/)
Read [Guide how to Setup with Woodpecker](https://devforth.io/blog/run-cypress-auto-tests-in-woodpecker-ci/)
# Example
```
pipeline:
websitesTest:
image: cypress/included:10.2.0
commands:
- npm install
- npm install ci-slack-reporter
- export CI_SLACK_REPORTER_ICON_URL=https://raw.githubusercontent.com/devforth/ci-slack-reporter/master/assets/patron_autotester.png
- export CI_SLACK_REPORTER_USERNAME="Patron Autotester"
- export CI_SLACK_REPORTER_VIDEO_URL=https://.s3.eu-central-1.amazonaws.com/output${CI_BUILD_NUMBER}.mp4
- export CI_SLACK_REPORTER_WEBHOOK=https://hooks.slack.com/services
- cypress run --reporter ci-slack-reporter --spec "cypress/e2e/$${TEST_NAME}.cy.js"```
Result:
