我试图使用norecursedirssetup.cfg中的选项告诉py.test不要从某些目录中收集测试,但它似乎确实忽略了它.
norecursedirs
[tool:pytest] norecursedirs=lib/third
当我跑步时,py.test我确实看到它是如何从内部进行测试的lib/third!
py.test
lib/third
python unit-testing pytest
pytest ×1
python ×1
unit-testing ×1