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?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
I recommend using:
While the
-vv
option is not described inman nosetests
, "An Extended Introduction to the nose Unit Testing Framework" states that:The
-vv
option can save time when trying to determine why nosetests is only finding some of your tests. (In my case, it was because nosetests skipped certain tests because the.py
scripts were executable.)Bottom line is that the
-vv
option is incredibly handy, and I almost always use it instead of the-v
option.Version 0.11.1 is currently available. You can get a list of tests without running them as follows:
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.