I have a cypress integration test that I do not want to run in my CI/CD pipeline. I know I can use .skip() function to skip the test but what I am looking for is a way to exclude the test by passing some command line argument itself(like we have in case of Xunit test cases). Is there any way to do that?
You can specify the tests you want to be run by using the cypress run --spec option. So you can move the tests you want to run into their own folder, 'cypress/integration/testsToRun/**/*' for example, and Cypress will run only the specified tests and skip the rest.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With