Visual regression testing for the Brady's Meat & Deli site with Wraith.
If you've never used Wraith before, you need to run the following steps to prepare your computer to run it.
-
Run
type rbenv
. If you get a message saying that rbenv was not found, then you'll need to install rbenv. On Mac OS/X, you can do this with:brew update brew install rbenv rbenv init # Follow any instructions to update your shell's configuration file. # Restart your Terminal window. rbenv install 1.9.3-p551 gem install bundler
-
Follow the instructions for setting up Wraith's dependencies.
Now you need to set up this project:
- Clone this repository.
- In a terminal,
cd
into the cloned repository. - Run
bundle install
-
In a terminal,
cd
into the cloned repository. -
Run
bundle exec wraith capture configs/config.yaml
.This will create a
shots/
folder inside the repository. This will contain a bunch of images, along with agallery.html
file which you can open in a browser to see the visual regressions.
Make configuration changes in configs/config.yaml
.
- The Wraith project documentation
- Visually Test Your Website with Wraith (blog by Kate Kligman)
- Using Wraith for Visual Regression Testing (Pantheon documentation)