GithubHelp home page GithubHelp logo

ftf-status's Introduction

This is a demonstration repository showing visual regression testing with BackstopJS and Grunt.

Setup for this was informed by the following articles: https://joe-watkins.io/css-visual-regression-testing-with-grunt-backstopjs/

To use this setup, after cloning this repository to your local computer you'll need to run the following setup commands:

npm install

bower install

grunt backstop:setup

This will download all the needed components for BackstopJS to work, and leave you ready to generate your first reference screenshots.

To see the setup in action, first run grunt backstop:reference to build a set of reference screenshots. Then, to run tests against these shots later, run grunt backstop:test to build a new set of screenshots, and compare them to the reference set.

After the test set has been generated, a new browser tab will open and the two will be compared. You'll see a display of what tests passed (no change in the reference screenshots) and which failed (because something changed). You'll need to review all failures to understand what changed - some changes are expected, as with randomly-loaded content and for style changes that are intended.

If you run into problems with this setup, please read the article at the top of this page and make sure you have all the needed software installed (Node, Bower, PhantomJS, etc). You can also ask Matt and he will help you troubleshoot.

ftf-status's People

Contributors

matt-bernhardt avatar

Watchers

 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.