Running Unit Tests - adampresley/placefinder-py GitHub Wiki

To run the unit tests for placefinder-py I use a tool called nose (https://nose.readthedocs.org/en/latest/). Nose is a quick way to easily discover and run your unit tests. I also use a plugin for nose named rednose (http://pypi.python.org/pypi/rednose/) which adds pretty colors and formatting to test errors and results. Put this together and here is how to run the unit tests that come with placefinder-py.

$ cd tests
$ nosetests --rednose
.........
-------------------------------------------------------------
9 tests run in 1.4 seconds (9 tests passed)
$