Cypress: Run tests from a specific folder

Created on 24 Feb 2019  Â·  7Comments  Â·  Source: cypress-io/cypress

Current behavior:

Currently I have not found a way to run the tests from just certain folders.

Desired behavior:

It would be interesting that in addition to run spec all, the cypress allowed to execute the tests by folders.

Most helpful comment

Can be closed.
Add this to your cypress.json:

"integrationFolder": "C:\\test test"

or:

"integrationFolder": "C:/test test"

Changing files to run:

"testFiles": "**/*.spec.js",

All 7 comments

Take a look at —spec option, you can pass a wildcard of spec files to run

Sent from my iPhone

On Feb 24, 2019, at 15:04, ArmandoAA notifications@github.com wrote:

Current behavior:

Currently I have not found a way to run the tests from just certain folders.

Desired behavior:

It would be interesting that in addition to run spec all, the cypress allowed to execute the tests by folders.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Can be closed.
Add this to your cypress.json:

"integrationFolder": "C:\\test test"

or:

"integrationFolder": "C:/test test"

Changing files to run:

"testFiles": "**/*.spec.js",

Got it.
But what I was saying is that there could be only one button in the cypress interface to run a specific folder.

Maybe someday will be a settings view for all config variables ;)

I believe you can see all config variables as resolved from the GUI

Sent from my iPhone

On Feb 24, 2019, at 19:59, Adam Stachowicz notifications@github.com wrote:

Maybe someday will be a settings view for all config variables ;)

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

You might be referring to what's described in #1586

So this issue can be closed

Was this page helpful?
0 / 5 - 0 ratings