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.yaml
to update thedomains
andpaths
to what you want for your new project. - Edit
newproject/configs/history.yaml
to update thedomains
andpaths
to what you want for your new project. - Optionally, edit the
screen_widths
and other settings
cd myproject
wraith capture config
(config
is the name of the YML file in theconfigs
directory. You could name itfoo.yaml
and then runwraith capture foo
.)open shots/gallery.html
- Review the screenshots in
gallery.html
for differences
Note: If you want to increase the timeout, add the following line to your config.yaml
file:
before_capture: "../../timeout.js"
cd myproject
wraith history history
to establish a baseline set of screenshots (history
is the name of the YML file in theconfigs
directory. You could name itfoo.yaml
and then runwraith history foo
.)wraith latest history
to compare the latest versions against the baseline.open shots/gallery.html
- Review the screenshots in
gallery.html
for differences
https://gist.github.com/sherakama/986c546f1dade4626b61#file-save_images-rb-L42