Create different test suite according to the different environments #14775
-
I have a requirement to execute test in different environments. But the concern is according to the environment some of the test are invalid. Hence I have to disable the test according to the environment. I have update the cypress.json file with following parameters, but is there any other way that I can override these value at run time. I have tried the export command as below and doesn't work. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You probably want to have either a separate |
Beta Was this translation helpful? Give feedback.
-
I am doing that with cypress/skip-test. You can get it here: https://www.npmjs.com/package/@cypress/skip-test
Meaning I only run this test on environments other than production. |
Beta Was this translation helpful? Give feedback.
You probably want to have either a separate
cypress.json
per environment with differentignoreTestFiles
patterns, or skip tests based on the environment using the plugin https://github.com/cypress-io/cypress-skip-test