相关疑难解决方法(0)

如何告诉py.test跳过某些目录?

我试图使用norecursedirssetup.cfg中的选项告诉py.test不要从某些目录中收集测试,但它似乎确实忽略了它.

[tool:pytest]
norecursedirs=lib/third
Run Code Online (Sandbox Code Playgroud)

当我跑步时,py.test我确实看到它是如何从内部进行测试的lib/third!

python unit-testing pytest

65
推荐指数
8
解决办法
3万
查看次数

标签 统计

pytest ×1

python ×1

unit-testing ×1