Examples of testing with Cypress and Mochawesome to generate test report.
CI - GitHub Actions to run Cypress tests and GitHub Pages to publish the generated Mochawesome HTML report.
GitHub page view test report: https://jeanljh.github.io/cy-examples/
- Install dependencies:
npm i
- Run Cypress headless tests:
npm run test
- Run Cypress headed tests:
npm run test:headed
- Merge Mochawesome JSON files:
npm run report:merge
- Generate Mochawesome report:
npm run report:gen
- Delete results folder:
npm run delete:result
- Delete report folder:
npm run delete:report
- Align code with Prettier:
npm run prettier