I am trying to run all pyunit tests in a directory using nosetests. The problem is that I have 4 tests in this directory and nosetests is only running one of them. If I run the other three tests individually like:
nosetests -v thistestwillrunnow.py
then the tests will run. But I thought just saying:
nosetests
would run all tests in the directory without having to run them one at a time.
How does nosetests find tests to run?
“If it looks like a test, it’s a test” !
This is extracted from nose documentation.
Personnaly I store my tests files in
testsub-directories right in my module’s directories like this :And it works very well 🙂