I use nosetests to run my unittests and it works well. I want to get a list of all the tests nostests finds without actually running them. Is there a way to do that?
I use nosetests to run my unittests and it works well. I want to get a list of all the tests nostests finds without actually running them. Is there a way to do that?
Version 0.11.1 is currently available. You can get a list of tests without running them as follows:
nosetests -v --collect-only
There will be soon: a new --collect switch that produces this behavior was demo'd at PyCon last week. It should be on the trunk "soon" and will be in the 0.11 release.
The http://groups.google.com/group/nose-users list is a great resource for nose questions.