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.
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: