Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS regression tool? [closed]

I'm looking for a visual regression testing tool for CSS refactoring and see whether or not there are any unintended cascading behavior in a website.

Ideally, the tool that can crawl a website (even locally) and grab snapshots of each page and store it in a single repository.

When run for the second time, it will show the pages that are visually different since the last time it was run.

Even better:

  1. if it can show the overlapper XOR view of the 2 version of the page.
  2. compare rendering results of different browsers (almost like an automated Microsoft Expression Web compare feature).
like image 337
ronaldwidha Avatar asked Mar 17 '10 12:03

ronaldwidha


People also ask

What is CSS regression?

Regression testing is less a type of testing—like, unit testing or end-to-end testing—and more of a strategy. It consists of setting up a test suite to catch regressions or bugs after changes to the codebase. So, CSS regression testing verifies that you don't break your page style after changing the page.

Which method of CSS is best for testing?

Which Method of CSS is Best for Testing. Automatic CSS testing is the most reliable way of detecting breaking changes after a CMS update, or after updating plug-ins and themes.

What is CSS in testing?

Cascading Style Sheets Official W3C Test Suites.

What is BackstopJS?

BackstopJS is a framework written in JavaScript that helps to automate visual regression tests easily and fast, and provides easy-to-configure test parameters for a variety of viewport sizes and pass/fail conditions.


4 Answers

My current favorite is WebDriverCSS in combination with BrowserStack Automate API. This pair of tools allows for multi-platform, multi-browser regression testing across the very wide range of devices that BrowserStack supports. It requires writing code but is much more comprehensive than any solution bound to Phantom or Slimer.

If you are ok with an old WebKit being your only test UA, here's a great writeup on CSS regression testing using PhantomCSS. Their basic example provides exactly what the original question desired: visual diffs between two commits.

For a simpler tool that requires no coding (only YAML config), I point people towards Wraith more often than PhantomCSS. Give @ericcraio's answer a vote if you like Wraith and don't want to write Casper code.

like image 132
Chris Ruppel Avatar answered Oct 02 '22 05:10

Chris Ruppel


I know this question has been posted for awhile but I wanted to mention about a new CSS regression tool called wraith by bbc-news.

http://github.com/bbc-news/wraith

It utilizes tools such as phantomJS and imagemagick.

http://responsivenews.co.uk/post/56884056177/wraith

like image 23
ericraio Avatar answered Oct 02 '22 05:10

ericraio


Check out Browser Shots. This is a free service.

There are some restrictions on how many tests you can run each day as a free user. But unlike Litmus; you can run tests on all supported browsers--Litmus only allows free users to test their websites on Internet Explorer 7 and Mozilla Firefox 2.

like image 28
cllpse Avatar answered Oct 02 '22 05:10

cllpse


I am developing a CSS regression testing tool which is called SUCCSS, it is a npm global, open source: https://github.com/B2F/Succss. Atm, you can read its full documentation there: http://succss.ifzenelse.net

like image 33
B2F Avatar answered Oct 02 '22 05:10

B2F