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.0.2.tar.gz (36.3 kB view details)

Uploaded Source

File details

Details for the file needle-0.0.2.tar.gz.

File metadata

  • Download URL: needle-0.0.2.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for needle-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c1216d3ac24934ae2b8d764698059705c7776705fc3e6f1a41f16bd6108f939c
MD5 d92b8786f60ccef03fe6f611e54bfbf1
BLAKE2b-256 651149e0dd44997dca17d096e0fa212828ec6d459dbe69664627c886c98be6f9

See more details on using hashes here.

Supported by

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