Nosetests ran 0 tests
When I run
nosetests --doctest-extension=.txt
I get
Ran 0 te开发者_开发问答sts in 0.002s
OK
Why does it say 0 tests when I have tests in the file README.txt?
If you're using doctest
you also have to specify that nose
has to run with the doctest plugin enabled.
This should do the trick:
nosetests --with-doctest --doctest-extension=txt
精彩评论