Is there a way to prevent Cypress to fail if zero test files are found? #17832
Unanswered
silversonicaxel
asked this question in
CI setup
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question, I've a situation where I filter with a RegExp the Cypress tests, in the Cypress plugins folder. This check is done on a javascript level with a custom lib that check with
git diff
the updated files of the branch I am in, during the execution of Cypress tests. This functionality works properly both locally and within a Jenkins pipeline.There are some cases where this RegExp filters all tests out, meaning: there is no need to run any Cypress tests (what it means is that it was touched some code that is not affecting anything regarding components of a UI library, so any Cypress tests is necessary).
Is there a way to prevent in this case, the failure of Cypress suite? I would love that my
package.json
script that run Cypress tests is executed but without failure of the command if zero tests are found.This is the current output:
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions