cypress-allure-plugin-example
cypress-allure-plugin-example copied to clipboard
example of cypress + cypress-allure-plugin + github action as CI + allure hosted as github page, report:
Cypress Allure Plugin Usage Example
This project demonstrates how to use cypress-allure-plugin.
Pre-requisite
- Allure
It may be classic solutions with java or allure-commandline npm package running binary under the hood.
How to run:
- clone this repo
- install dependencies:
npm install - run tests:
npm run cy:run - clear previous output
npm run allure:clear - generate allure report:
npm run allure:report - open report:
allure open
Allure report
- is generated by github action on every push. See .github/workflows/allure.yaml
- historical data is preserved, so reports will have nice graphs :)
- hosted with github pages. Check allure-report
VS Code for cypress + cucumber
In case you are using VS Code and Cypress Helper (latest) extension, it has configuration for allure cucumber tags autocompletion available:
"cypressHelper.cucumberTagsAutocomplete": {
"enable": true,
"allurePlugin": true,
"tags": ["focus", "someOtherTag"]
}