Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running fails with: We looked but did not find a cypress.json file in this folder: /e2e #5

Open
tommueller opened this issue Feb 19, 2020 · 3 comments

Comments

@tommueller
Copy link

tommueller commented Feb 19, 2020

Current behavior:

I try running the cy-run.sh from this repo, which results in the error (this is with a fresh clone):

Could not find any tests to run.
We looked but did not find a cypress.json file in this folder: /e2e

Desired behavior:

The tests should run just fine.

Test code to reproduce

Just clone the repo and run ./cy-run.sh. I tried switching to different versions of the cypress-included image (also 4.0.1), always the same error.

Versions

Different cypress versions (see above).
Docker version: 19.03.3, build a872fc2f86

@arjun9218
Copy link

I'm also facing the same issue. Did you find a solution?

@bahmutov
Copy link
Owner

bahmutov commented Jan 5, 2021

What operating system are you using? Can you post the full terminal output when running

@jkondratowicz
Copy link

I've had the same issue running it on Ubuntu 18.04 inside WSL on Windows 10. Basically something like this happens:

$ ./cy-run.sh
Running Cypress e2e tests headlessly without copying files
Could not find a Cypress configuration file, exiting.

We looked but did not find a cypress.json file in this folder: /e2e

The reason is that Docker running in WSL sometimes behaves weirdly when it comes mounting volumes, so the e2e folder was just empty.

To fix it I had to tweak with my Docker settings - remove and re-add shared folders and (despite running this command in Ubuntu) use the windows path to mount the volume when running docker. So instead of
docker run -it -v $PWD:/e2e -w /e2e cypress/included:6.2.1 $@

Something like this worked:
docker run -it -v "C:/workspace/demo-docker-cypress-included/e2e -w /e2e cypress/included:6.2.1 $@

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants