Skip to content

Allow passing a list of glob patterns in testFiles config option #5401

@bahmutov

Description

@bahmutov

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions