Replies: 1 comment
-
We can already do that with this option: https://docs.cypress.io/guides/guides/environment-variables#Option-3-CYPRESS_ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pass environment variables to Cypress to select tests to run
In order to deploy faster and test the core features we would like to skip some tests depending on an env variable passed through the run command, for example:
npx @s-ui/test-e2e --env light=true
and getting it in Cypress with:
Cypress.env('light')
To do that we should add the env parameter as an option in this package.
What do you think about using env variable instead of changing folder structure to select which test we want to run?
Beta Was this translation helpful? Give feedback.
All reactions