Maintainers: jbickar, sherakama
brew install phantomjs
brew install imagemagick
brew install casperjs --devel
gem install wraith
See "Other Resources" below for more in-depth installation instructions.
- Copy a recently-committed directory to a new location at the root of the repo (e.g.,
cp -r registrar newproject) - Edit
newproject/configs/config.yamlto update thedomainsandpathsto what you want for your new project. - Edit
newproject/configs/history.yamlto update thedomainsandpathsto what you want for your new project. - Optionally, edit the
screen_widthsand other settings
cd myprojectwraith capture config(configis the name of the YML file in theconfigsdirectory. You could name itfoo.yamland then runwraith capture foo.)open shots/gallery.html- Review the screenshots in
gallery.htmlfor differences
Note: If you want to increase the timeout, add the following line to your config.yaml file:
before_capture: "../../timeout.js"
cd myprojectwraith history historyto establish a baseline set of screenshots (historyis the name of the YML file in theconfigsdirectory. You could name itfoo.yamland then runwraith history foo.)wraith latest historyto compare the latest versions against the baseline.open shots/gallery.html- Review the screenshots in
gallery.htmlfor differences
https://gist.github.com/sherakama/986c546f1dade4626b61#file-save_images-rb-L42