I was wondering this already for a while now, but I was not able to figure out how to pass options to nosetests
to run different tests which reside in different sub-directories. Example of an package directory structure:
my_package/
|-- my_module1/
|-- tests/
|-- unit/
| ... a bunch of unit tests
|-- integration/
|... a bunch of integration tests
|-- my_module2/
|-- tests/
|-- unit/
| ... a bunch of unit tests
|-- integration/
|... a bunch of integration tests
If I want to execute just the unit tests in all my modules (all the tests in tests/unit/
sub-directories), how would I do that using the nosetests library?