我以以下方式组织了许多单元测试:
test_dir/
test_important1.py
test_important2.py
test_important3.py
....
basic tests/testA1.py
testA2.py
....
__init__.py
我想在test_dir
目录本身中运行所有测试,而不包括在上找到的测试basic tests
。
如何做到这一点?
谢谢!
有一个--exclude-dir
选项由引入nose-exclude
:
nosetests --exclude-dir="basic tests/"
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句