Continuous Safe Deployment Made Easy
Although testing gains evidence in software development every day, it is still rare to find a test strategy that goes beyond functional testing. While layout testing remains forgotten by most, we all have seen cases where the application functionally works just fine but that button somehow got moved 2 pixels do the right or that table cell lost it's alignment and the client wont approved it. Manually testing each screen tends to be error prone since some changes are too small for a QA to notice (specially after seeing dozens of other screens) and can take weeks depending on the system size and complexity. Automated Screenshot Diff allows you and your team to extend test coverage up to the application layout, making sure you are aware of any layout changes whether you use manual or automated testing strategies.
It's simple. All you have to do is generate your system's screenshots with a simple naming convention: Example:
SCENARIO_NAME-VERSION.png // login_screen-v1.png
Then automated-screenshot-diff
will scan your screenshot's folder
and calculate differences between your pre-production (stage) release and your production release. All generated image diffs will be
in the same directory as your screenshots. If you don't known how to gereate those screenshots, take a look at examples folder.
$ npm install -g automated-screenshot-diff
$ automated-screenshot-diff compare --previous-release v1 --current-release v2 --source screenshots/
$ automated-screenshot-diff compare --previous-release v1 --current-release v2 --source screenshots/ --ignore-not-changed=true
$ automated-screenshot-diff compare -p v1 -c v2 -s screenshots/ -o html
$ automated-screenshot-diff compare -p v1 -c v2 -s screenshots/ -o json