Coder Social home page Coder Social logo

pxlrbt / website-diff Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 61 KB

Utility tool that bundles a crawler and BackstopJS for visual regression testing.

License: GNU Lesser General Public License v3.0

JavaScript 100.00%
backstopjs crawler visual-regression-testing

website-diff's Introduction

website-diff

Tool for crawling a website and running visual regression tests using BackstopJS.

Installation

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 ./

Usage

Initialize

Publish the config file.

website-diff init

Crawl a site

Crawls 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 crawl

You can limit crawling pages with a common root url (e.g /blog/, /products/) with the limitSimilar option.

Generate BackstopJS config

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 generate

backstop.yml supports all options of backstop.json plus the additional scenario option that will be used as a template for all scenarios.

Run BackstopJS

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.

Notes

The crawler is a modified version of backstop-crawl.

website-diff's People

Contributors

pxlrbt avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.