https://github.com/wlsf82/multiple-environments-with-different-values
Sample project to demonstrate how to run Cypress tests on multiple environments using command line envs.
https://github.com/wlsf82/multiple-environments-with-different-values
cypress-io multiple-test-environments talking-about-testing
Last synced: 6 months ago
JSON representation
Sample project to demonstrate how to run Cypress tests on multiple environments using command line envs.
- Host: GitHub
- URL: https://github.com/wlsf82/multiple-environments-with-different-values
- Owner: wlsf82
- License: mit
- Created: 2023-03-22T20:39:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-23T16:47:50.000Z (over 2 years ago)
- Last Synced: 2024-12-12T17:12:32.804Z (10 months ago)
- Topics: cypress-io, multiple-test-environments, talking-about-testing
- Language: JavaScript
- Homepage:
- Size: 40 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://walmyr.dev).