Jim Lynch Codes
  • Blog
  • About Jim

Writings about one coder's stories & experiences.

Thoughts on Visual Regression Testing

4/27/2016

0 Comments

 
Last night I went to the "GothamSASS" meetup group event at the ThoughtWorks NYC office (which is awesome by the way) which was about Visual Regression testing. 

Here's a link to the original meetup event and the presentation slides.
A very knowledgable developer, Ian Yamey, gave a talk about visual regression testing. I had never heard of such a thing before, but being such a TDD fan the thought is "testing your css" was intriguing to me. I mean, a slight mis-typing in your css file could cause a bug that's just as bad as problems with your JavaScript.

E2e Testing For CSS

At first I thought, "wow, that seems like a ton of code to be writing expect statements for all of your style rules!". Indeed, if you actually wrote "unit tests" for your css then that would take a lot of code. Instead, what Ian recommends is more of an e2e approach to testing your styles which is basically a program that compares visual snapshots of your site and spots the differences. Much like the old spot the differences cartoons in newspapers live the one below: 
Picture
There are tools that can check your site in a similar fashion. This is a screenshot of Ian using Percy.io:
Picture
Ian also mentions PhantomCSS as another nice visual regression testing tool. 

Final Thoughts

This talk was super interesting and really opened my mind to a concept that I had no idea existed. Percy calls itself a tool for, "Continuous visual integration for web apps" where it basically runs these visual tests on every git push. This seems a bit overkill for me right now, but I can definitely appreciate the power of this for ensuring a clean, correct interface across all devices, and like most automated testing, apps that have already gone live with large codebases and / or number of users hurt the most from visual software bugs, and Percy.io or PhantomCSS are tools that can drastically reduce this risk. 
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    ​Author

    Picture
    The posts on this site are written and maintained by Jim Lynch. About Jim...
    Follow @JimLynchCodes
    Follow @JimLynchCodes

    Categories

    All
    Actionscript 3
    Angular
    AngularJS
    Automated Testing
    AWS Lambda
    Behavior Driven Development
    Blockchain
    Blogging
    Business Building
    C#
    C / C++
    ClojureScript / Clojure
    Coding
    Community Service
    CS Philosophy
    Css / Scss
    Dev Ops
    Firebase
    Fitness
    Flash
    Front End
    Functional Programming
    Git
    Go Lang
    Haskell
    Illustrations
    Investing
    Java
    Javascript
    Lean
    Life
    Linux
    Logic Pro
    Music
    Node.js
    Planning
    Productivity
    Professionalism
    Python
    React
    Redux / Ngrx
    Refactoring
    Reusable Components
    Rust
    Security
    Serverless
    Shell Scripting
    Swift
    Test Driven Development
    Things
    TypeScript
    Useful Sites
    Useful Tools
    Video
    Website Development
    WebStorm
    Writing

    Archives

    August 2021
    February 2021
    January 2021
    October 2020
    September 2020
    May 2020
    April 2020
    February 2020
    January 2020
    December 2019
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    May 2017
    April 2017
    March 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015

    RSS Feed

  • Blog
  • About Jim
JimLynchCodes © 2021