Generate report with Mocha Awesome
First install cypress Globally
npm i -g cypress
npm install --save-dev mochawesome
npm install --save-dev mocha
npm install mochawesome-merge --save-dev
Add below in cypress.json
{"reporter": "mochawesome",
"reporterOptions": {
"reportDir": "cypress/report/mochawesome-report",
"overwrite": true,
"html": true,
"json": false,
"timestamp": "mmddyyyy_HHMMss"
}
}
To Run Test cases
cypress run
Note: this will generate Video, Screenshots and Html Report
Videos
No comments:
Post a Comment