Incorrect behaviour running Cypress from root with tests in subfolders
See original GitHub issueSetup
- Operating System: MacOS
- Cypress Version: 0.20.0
- Browser Version: n/a
Is this a Feature or Bug?
A bug.
Current behavior:
Considering the following structure:
_ package.json
_ node_modules
_ src/
|_ clients/
|_ foo/
|_ cypress.json
|_ cypress/
|_ bar/
|_ cypress.json
|_ cypress/
And the following command run from root:
./node_modules/.bin/cypress run ./src/clients/foo
- A
cypress
folder gets created at root. - The dummy tests are run instead of the expected ones.
Desired behavior:
- No
cypress
folder gets created at root. - The tests from
./src/clients/foo
are run.
Additional infos
Running the following command doesn’t fix the problem (--project
).
./node_modules/.bin/cypress run --project ./src/clients/foo
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Writing and Organizing Tests - Cypress Documentation
The behavior of running tests in a clean browser context is described as testIsolation . The test isolation is a global configuration and...
Read more >How can I get Cypress to run a specific folder of tests by ...
I think you're looking for --spec path/to/folder/*.js. You can run all the tests in a folder, or even in all subfolders of a...
Read more >@cypress/github-action - npm
GitHub Action for running Cypress end-to-end tests. Includes NPM installation, custom caching and lots of configuration options.
Read more >News - E2E Tests with Cypress 4 & Angular 9 - Lambda IT
integration: In this folder we will save all our spec files you can structure your tests in subfolders. plugins: Folder to install third-party...
Read more >BigBinary Books - How to run Cypress tests
When we update/add new tests, and run Cypress, some of the unrelated test suites having Fixed tag may fail. So instead of fixing...
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
Fixed in
0.20.1
.Yay, thank you!