Automated testing for your CSS.
Project description
Needle
======
[![Build Status](https://travis-ci.org/bfirsh/needle.png?branch=master)](https://travis-ci.org/bfirsh/needle)
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:
```python
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
======
[![Build Status](https://travis-ci.org/bfirsh/needle.png?branch=master)](https://travis-ci.org/bfirsh/needle)
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:
```python
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
Release history Release notifications | RSS feed
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.3.tar.gz
(43.3 kB
view details)
File details
Details for the file needle-0.3.tar.gz
.
File metadata
- Download URL: needle-0.3.tar.gz
- Upload date:
- Size: 43.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d60452d98ea429355a6b5f3f4ee80a8ac421907d1dcf842c22d6309cc32148ee |
|
MD5 | 0ed8a7a48c7e43bdf626e5fb55500833 |
|
BLAKE2b-256 | f48f9ad1d532057b4e2162a1caffeecb7a1c2af2973d6eaac169d53aa3726925 |