docker build -t croc/puppeteer .
- Create a
tests
folder. - write a puppeteer test file under the test folder with
test.js
name - run the container and check the output and/or folder for screenshots
docker run -v $PWD/tests/:/tests/ --rm croc/puppeteer
Do not forget to add write permission on tests folder!
Check the examples folder in the repo for a short example test file. ... and these URLs for more information :)
Good Luck! :)