Write simple UI integration tests with NightwatchJS and run visual diffs against a baseline for catching regressions.
Thanks to richard-flosi for the screenshot comparison stuff.
Clone this repository, and run npm install
to install dependencies. You'll need to install Grunt if you haven't already.
Run tests from your command line with grunt
.
Tests are located within /test
. This repo comes with a simple demo test that visits google.com and takes a screenshot. For more involved tests, checkout the Nightwatch documentation.