Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmitry/cypress-report-action
https://github.com/dmitry/cypress-report-action
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dmitry/cypress-report-action
- Owner: dmitry
- License: mit
- Created: 2021-01-15T16:26:50.000Z (almost 4 years ago)
- Default Branch: v1
- Last Pushed: 2023-01-16T15:28:38.000Z (almost 2 years ago)
- Last Synced: 2024-10-15T14:01:15.088Z (about 1 month ago)
- Language: JavaScript
- Size: 836 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Features
On each pull request commit push you will get the following comment with a report:
![Report](docs/report.png)
- Creates comment with short report on cypress gets failures.
- Removes comment when no failures reported.
- Replaces comment everytime build is completed.## Usage
Assumes you have added `mochawesome` reporter to `cypress.json` which generates JSON reporter file:
```json
"reporter": "cypress-multi-reporters",
"reporterOptions": {
"reporterEnabled": "mochawesome",
"mochawesomeReporterOptions": {
"reportDir": "test/cypress/reports/mocha",
"quiet": true,
"overwrite": false,
"html": false,
"json": true
}
}
```You can now consume the action by referencing the v1 branch:
```yaml
- name: Prepare reports
if: always()
run: |
cd frontend
npm i -g mochawesome-merge
npm i -g mochawesome-report-generator
mochawesome-merge test/cypress/reports/mocha/*.json > ./test/cypress/reports/mocha/index.json
marge --charts=true --showPassed=false -o ./test/cypress/reports/mocha/ ./test/cypress/reports/mocha/index.json
- name: Cypress report
uses: dmitry/cypress-report-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
pathname: frontend/test/cypress/reports/mocha/index.json
if: always()
```