Allow passing a list of glob patterns in testFiles config option
See original GitHub issueCypress 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
cypress/
integration/
foo.js
bar.js
baz.js
If I want to only have “foo.js” file I can do the following
{
"testFiles": "foo.js"
}
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.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Configuration - Cypress Documentation
A String or Array of glob patterns used to ignore test files that would otherwise be shown in your list of tests. Please...
Read more >Configuring Jest
An array of glob patterns indicating a set of files for which coverage information should be collected. If a file matches the specified...
Read more >Jest passing tests but --covering option not picking up files
I have written two tests for a typescript class. Those two tests pass so jest successfully retrieves the test files. I then use...
Read more >E2E Testing with Cypress -03 - Configure Cypress
A String or Array of glob patterns used to ignore test files that would otherwise be shown in your list of tests. screenshotsFolder,...
Read more >Configuration File | API | Docs - TestCafe
When TestCafe overrides a configuration file setting, ... CLI: Browser List ... You can use glob patterns to specify a set of files....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Example repo in https://github.com/cypress-io/cypress-test-tiny/tree/test-files
Released in
3.6.0
.