New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow passing a list of glob patterns in testFiles config option #5401
Comments
Example repo in https://github.com/cypress-io/cypress-test-tiny/tree/test-files |
This would be super useful for JS specs + Markdown fiddles in cypress-io/cypress-fiddle#21 where I need to select a pattern of spec filenames AND all markdown files |
We could follow the example of |
Since we use {
"testFiles": "{foo,bar}.js"
} and you can see the spec finding messages by running Cypress with |
Note that there should be no spaces in the pattern. To find all files with extension {
"testFiles": "{*.md,*spec.js}",
} |
The code for this is done in cypress-io/cypress#5402, but has yet to be released. |
Released in |
Cypress v3.4.1
There is a configuration option
testFiles
in https://on.cypress.io/configuration that controls which spec files are found.Let's say I have the following files
If I want to only have "foo.js" file I can do the following
But how do I pick "foo.js" AND "bar.js"?
I would be very nice to allow
testFiles
to be a single string or a list of strings and match each filename against a list.The text was updated successfully, but these errors were encountered: