5 ms·
I've half built a tool to do this using PhantomJS, and a really half-baked API. The image grab part is easy. The diffing is what's hard... well sort of. What I
by stephentmcm 11y ago
I've half built a tool to do this using PhantomJS, and a really half-baked API. The image grab part is easy. The diffing is what's hard... well sort of.
What I tried and what this site appears to do is a straight pixel change detection, which fails to account for how important that change is. Minor things change on a site all the time it's catching major breaking changes that's hard, say a CSS rule change that looks fine on desktop but ruins the site on mobile.
- Kimitri 11y agoI've used CasperJS, PhantomCSS and PhantomJS for visual regression testing on dozens of Drupal sites and, while not a perfect solution by any means, it's worked pretty well. PhantomCSS seems to be pretty configurable and makes it rather easy to detect breaking changes.
- stephentmcm 11y agoO nifty I hadn't seen PhantomCSS before.
- koudelka 11y agoWhen I built something like this, I used http://wkhtmltopdf.org http://wkhtmltopdf.org and http://pdiff.sourceforge.net http://pdiff.sourceforge.net.