Runs TestCafé, my personal favorite node.js tool to automate end-to-end web testing.
This check supports chromium.
docker build -t whoopsmonitor-check-testcafe .
Workdir of the running container is in /tests
directory. So you have to mount it with the file/folder where you have your own tests.
Folder example:
docker run --rm -it -v $(pwd)/src:/whoopsmonitor-worker/NOT_DEFINED whoopsmonitor-check-testcafe tests/
NOT_DEFINED
is just a dummy directory. Don't worry about it.
File example:
docker run --rm -it -v $(pwd)/src/index.js:/whoopsmonitor-worker/NOT_DEFINED/index.js whoopsmonitor-check-testcafe /tests/index.js
-it
Do not forget to run the container with interactive terminal.