I'm trying to use ignoreTestFiles
in cypress so that incomplete tests will not get run in the test suite.
The path to my tests is:
C:\Users\userA\IdeaProjects\automated_tests\cypress\integration\ignoredTestFiles
In cypress.json
, I have the following entry:
"ignoreTestFiles": "*ignoredTestFiles*"
I used Globster to verify the minimatch, and it says its correct. But when I run my tests, these files are not getting ignored.
You need to specify a match for files, so I suggest you to add *.js
to your expression.
Also, you need to add another *
to match any sub-directory structure, try this expression instead:
"ignoreTestFiles": "**/ignoredTestFiles/*.js"