Skip to main content

Automated testing for your CSS.

Project description

Needle is a tool for testing your CSS with [Selenium](http://seleniumhq.org/) and [nose](http://somethingaboutorange.com/mrl/projects/nose/).

It checks that CSS renders correctly by taking screenshots of portions of a website and comparing them against known good screenshots. It also provides tools for testing calculated CSS values and the position of HTML elements.

Example

This is what a Needle test case looks like:

from needle.cases import NeedleTestCase

class BBCNewsTest(NeedleTestCase):
def test_masthead(self):

self.driver.get(’http://www.bbc.co.uk/news/’) self.assertScreenshot(‘#blq-mast’, ‘bbc-masthead’)

This example checks for regressions in the appearance of the BBC’s masthead.

Documentation

Full documentation is on [Read the Docs](http://needle.readthedocs.org/).

Running Needle’s test suite

$ nosetests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

needle-0.1.0.tar.gz (36.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page