小编Sub*_*tri的帖子

如何运行一次设置(夹具)然后并行测试

我使用 pytest-xdist 并行运行测试,但我的套件设置非常庞大且笨重,我希望避免在每个测试执行中运行多次。
当我使用 pytest-xdist 并行运行所有测试时,我遇到了这样的问题:我的套件设置(固定装置)在每次测试执行之前运行,这增加了所有测试用例的执行时间。
有什么方法可以避免在 pytest 并行执行中每次测试执行之前执行固定装置吗?

python pytest pytest-parallel pytest-xdist

6
推荐指数
1
解决办法
3232
查看次数

标签 统计

pytest ×1

pytest-parallel ×1

pytest-xdist ×1

python ×1