Skip to content

Sample project to demonstrate how to run Cypress tests on multiple environments using command line envs.

License

Notifications You must be signed in to change notification settings

wlsf82/multiple-environments-with-different-values

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multiple-environments-with-different-values

Sample project to demonstrate how to run Cypress tests on multiple environments using command line envs.

Pre-requirements

It is required to have Nodejs and NPM installed to run this project.

I used versions v18.13.0 and 8.19.3 of Nodejs and npm, respectively. I suggest you use the same or later LTS versions.

Installation

Run npm install (or npm i for the short version) to install the dev dependencies.

Tests

In this project, you can run tests against two different environments (blue and gray).

Blue

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.

Gray

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.

Both blue and gray

Run npm test (or npm t for the short version) to run the tests in headless mode against both the blue and gray environments.

Support this project

If you want to support this project, leave a ⭐.


This project was created with 💜 by Walmyr.

About

Sample project to demonstrate how to run Cypress tests on multiple environments using command line envs.

Topics

Resources

License

Stars

Watchers

Forks