开发者

Nosetests ran 0 tests

开发者 https://www.devze.com 2023-04-13 04:02 出处:网络
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 ha

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
0

精彩评论

暂无评论...
验证码 换一张
取 消