- npm install
- npm link
- npm link cypress-cucumber-preprocessor
- go to cypress.json file
- set baseurl
- Go to project root,
- npx cypress open
- click specific feature file [executionwillstart]
- npm run test:mochawesomereport
- npm run test:allurereport
- npm run report
- npm run test:htmlreport
- node ./index.js
We can cover visual testing with cypress using cypress-image-snapshot
node_module
- npm run test:visual-base
- npm run test:visual-actual
- Snapshots will be generated in 'snapshots' folder
-
Reports will be generated in 'mochawesomereport-report' folder - command line execution only
ex: npm run test:mochawesomereport
-
Allure reports: a. npm run test:allurereport b. npm run report