/docker-testcafe

docker image to run TestCafé. Includes Chromium & Firefox + TestCafé framework specific selectors

Primary LanguageJavaScript

TestCafé Docker image

Docker image to run TestCafé. Includes:

Usage

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'

Limitations

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.

Building the docker image

git clone https://github.com/thomasleveil/docker-testcafe.git
cd docker-testcafe
docker build -t tomdesinto/testcafe .