A sample framework created using cypress, javascript and docker, reports are generated using various report styles like mochawesome and allure-report.
- Node version 12 or above
- Visual Studio Code
You know setting up framework is very quick!
- clone the project and open with Visual Studio Code
- Open Terminal
npm install
- go to cypress.json file
- set baseurl
- Go to project root,
npm run cy:open
- click specific feature or run all features
npm run e2e_mochawesome
# for a full run with mochawesome reportsnpm run e2e_allure
# for a full run with allure-reportsnpm run cy:run:record
# for a full run and to upload results to cypress dashboard(https://dashboard.cypress.io/projects/ytqaz3/)
for more npm scripts, refer to scripts in package.json
-
Mochawesome reports: After execution of command
npm run e2e_mochawesome
, reports will be generated inmochawesome-report
folder and openoutput.html
for html reports -
Allure reports: After execution of command
npm run e2e_allure
, allure reports will be shown via web-server
-
Download and install Docker
-
For Windows: https://docs.docker.com/desktop/windows/
-
Go to project root and run command
docker build -t cypress .