Sample project to demonstrate how to run Cypress tests on multiple environments using command line envs.
It is required to have Nodejs and NPM installed to run this project.
I used versions
v18.13.0
and8.19.3
of Nodejs and npm, respectively. I suggest you use the same or later LTS versions.
Run npm install
(or npm i
for the short version) to install the dev dependencies.
In this project, you can run tests against two different environments (blue and gray).
Run npm run test:blue
to run the tests in headless mode against the blue environment.
Or run npm run cy:open:blue
to open Cypress in interactive mode and run the tests against the blue environment.
Run npm run test:gray
to run the tests in headless mode against the gray environment.
Or run npm run cy:open:gray
to open Cypress in interactive mode and run the tests against the gray environment.
Run npm test
(or npm t
for the short version) to run the tests in headless mode against both the blue and gray environments.
If you want to support this project, leave a ⭐.
This project was created with 💜 by Walmyr.