demo-docker-cypress-included
demo-docker-cypress-included copied to clipboard
Running fails with: We looked but did not find a cypress.json file in this folder: /e2e
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
I'm also facing the same issue. Did you find a solution?
What operating system are you using? Can you post the full terminal output when running
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 $@