Skip to content

thomasleveil/docker-testcafe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 .