Selection of env - Runtime
-
Initially, add environment specific configuration files in the project. Include the values which were constant wrt to the environment.
-
cdt.config.js
In the similar way, we have the config files for stage, prod environment too.
- When we need to run the specific environment, we will mention it in runtime like
npx cypress open --config-file env.config.js
For example, for stage environment, it would be like this
npx cypress open --config-file stage.config.js
- We have added it to the scripts, so we can directly run the defined script.
For running these scripts,
Was this page helpful?