Docker image to run TestCafé. Includes:
- Chromium
- Firefox
- TestCafé framework specific selectors
Running tests with Firefox:
docker run --rm -it -v /my/testcafe/tests/:/tests tomdesinto/testcafe:latest testcafe firefox '/tests/*.test.js'
Running tests with Chromium:
docker run --rm -it -v /my/testcafe/tests/:/tests tomdesinto/testcafe:latest testcafe 'chromium --no-sandbox' '/tests/*.test.js'
Containers created from this image are meant to be used one time and then removed. Issues arise if you try to run the testcafe
command multiple times in the same container.
git clone https://github.com/thomasleveil/docker-testcafe.git
cd docker-testcafe
docker build -t tomdesinto/testcafe .