私は多くのユニットテストを次のように構成しています。
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]
コメントを追加