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