Skip to content
rajbot edited this page Sep 13, 2010 · 2 revisions

Tests are written using doctest. To run them all at once, you can run cd test; python run.py

cwd needs to be the test directory, in order for sys.path to be set properly.

The output of run.py should look something like this:

> python run.py 
../README: 21 out of 21 passed
OpdsToCatalog.txt: 22 out of 22 passed
testing module ../bookserver/__init__.py
testing module ../bookserver/ingest.py
testing module ../bookserver/device.py
testing module ../bookserver/catalog/Link.py
testing module ../bookserver/catalog/Entry.py
testing module ../bookserver/catalog/output.py
testing module ../bookserver/catalog/Catalog.py
testing module ../bookserver/catalog/OpenSearch.py
testing module ../bookserver/catalog/Navigation.py
Clone this wiki locally