Example BackstopJS test environment with a included Vagrantfile and Dockerfile for testing purpose.
Example BackstopJS test environment with a included Vagrantfile and Dockerfile for testing purpose.
Say what? BackstopJS automates visual regression testing of your responsive web UI by comparing DOM screenshots over time.
Features:
I recommend this way, cause if you don’t like it, you didn’t mess up your system.
vagrant up
May you prefer Dockern rather then Vagrant, then I recommend this way. Because if you don’t like it, you didn’t mess up your system.
docker run -it --rm -v "$PWD":/backstopjs-example --name backstopjs-example-container vergissberlin/backstopjs-example bash
If you don’t wanna use Vagrant, you have to install the dependencies on your own. Please install phantomjs and the node packages like that:
sudo npm i backstopjs phantomjs slimerjs -g
cd backstop-example && npm i
backstopjs test
backstopjs references
For furhter informations, take a look on the BackstopJS GitHub page.