How to Generate Report in Cypress - Bug Reaper

                  Bug Reaper

Lean about Automation Testing,Selenium WebDriver,RestAssured,Appium,Jenkins,JAVA,API Automation,TestNG,Maven, Rest API, SOAP API,Linux,Maven,Security Testing,Interview Questions

Thursday 16 July 2020

How to Generate Report in Cypress

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