Reputation: 45172
I have installed pylons based application from egg, so it sits somewhere under /usr/lib/python2.5/site-packages. I see that the tests are packaged too and I would like to run them (to catch a problem that shows up on deployed application but not on development version).
So how do I run them? Doing "nosetests" from directory containing only test.ini and development.ini gives an error about nonexistent test.ini under site-packages.
Upvotes: 0
Views: 506
Reputation: 433
Straight from the horse's mouth:
Install nose: easy_install -W nose.
Run nose: nosetests --with-pylons=test.ini OR python setup.py nosetests
To run "python setup.py nosetests" you need to have a [nosetests] block in your setup.cfg looking like this:
[nosetests]
verbose=True
verbosity=2
with-pylons=test.ini
detailed-errors=1
with-doctest=True
Upvotes: 1