cypress run --spec cypress/integration/APP/**/* runs all tests instead of just subfolder APP tests
See original GitHub issueIs this a Feature or Bug?
Bug
Current behavior:
I have two subfolders in my integration folder: cypress/integration/APP/ cypress/integration/API/
When I run
cypress run --spec cypress/integration/APP/**/*
ALL tests run, but I expected that only tests in the APP subfolder would run. Is this a bug or intended behaviour? Doesn’t the --spec flag support globs?
Desired behavior:
Just run tests in cypress/integration/APP/ subfolder The --spec feature would be really useful if I could run all tests in different subfolders so I could manually distribute tests across machines.
Steps to reproduce:
cypress run --spec cypress/integration/SUBFOLDER/**/*
Versions
cypress 3.0.1 on Mac OS 10.13.4
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Writing and Organizing Tests - Cypress Documentation
What you'll learn How to organize your test and support files. What languages are supported in your test files. How Cypress handles unit...
Read more >node.js - How can I give path to a particular folder and just run ...
There are a couple of suggestions here cypress run --spec cypress/integration/APP/**/* runs all tests instead of just subfolder APP tests.
Read more >Run All Specs in Cypress v10 - Gleb Bahmutov
This blog post explains my workaround for running all specs together (or some specs only). Video: if you would rather watch the explanation, ......
Read more >Skip test conditionally with Cypress - Filip Hric
You can use them with multiple tests in a single spec, so that you'll run only those test that you want. This code...
Read more >Great E2E testing with Cypress
Cypress offers a great test runner, that's not flaky, for running Unit as well as E2E tests, the future is here. # Installing...
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 FreeTop 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
Top GitHub Comments
@silversteez @maximilianschmid try adding single quotes around the spec glob or use an equals sign…
You should see new output we added in 3.0 that specifies Specs and Searched
Specs being the specs that will be run Searched being what Cypress used to search for the specs
What is printed in these fields in the console output?
You can run different subfolders by passing multiple globs to the spec argument like: