Testcafe through Docker does not find test files

Viewed 865

I like to run testcafe test through docker but i receive following error:

sudo docker run -u root -v ${PWD}:/e2e -it testcafe/testcafe chromium e2e/*.js

ERROR TestCafe could not find the test files that match the following patterns: e2e/e2e.docker.js e2e/e2e.js The "/" current working directory was used as the base path. Ensure the file patterns are correct or change the current working directory.

I tried a lot of different arguments but never was successful with running the basic test.

1 Answers

Make sure that your directory with tests was specified correctly.

For example: sudo docker run -v /home/username/test-project/tests:/e2e -it testcafe/testcafe chromium e2e/*.js

Related