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.

Incorrect behaviour running Cypress from root with tests in subfolders

See original GitHub issue

Setup

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

github_iconTop GitHub Comments

1reaction
brian-manncommented, Sep 18, 2017

Fixed in 0.20.1.

0reactions
KittyGiraudelcommented, Sep 18, 2017

Yay, thank you!

Read more comments on GitHub >

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

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