Tool for crawling a website and running visual regression tests using BackstopJS.
Clone the repo and install it globally so the website-diff command is registered.
git clone https://github.com/pxlrbt/website-diff.git
cd website-diff
npm install
npm install -g ./Publish the config file.
website-diff initCrawls a site based on the config in website-diff.yml and stores the results in sites.yml so it can be modified before generating a config.
website-diff crawlYou can limit crawling pages with a common root url (e.g /blog/, /products/) with the limitSimilar option.
Generates the required backstop.json from backstop.yml template file. You can define a default config for every scenario using scenario.default config option.
A custom config for individual paths can be set with scenario.custom[/path/to/page].
website-diff generatebackstop.yml supports all options of backstop.json plus the additional scenario option that will be used as a template for all scenarios.
Run the visual regression test with website-diff run. This will generate a new config file from your template, your backstop reference and backstop test in sequence.
The crawler is a modified version of backstop-crawl.