question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow passing a list of glob patterns in testFiles config option

See original GitHub issue

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

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:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bahmutovcommented, Oct 21, 2019
0reactions
cypress-bot[bot]commented, Nov 5, 2019

Released in 3.6.0.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found