使用 pytest-xdist 并行化大型 pytest 测试套件并隔离缓慢的反馈循环
Fan out Python test execution across workers so slow suites finish faster and bottlenecks show up before they dominate CI time.
Prerequisites
Python environment, pytest, pytest-xdist, and a pytest-compatible test suite with enough local or CI worker capacity to parallelize
Installation
Requirements and caveats from upstream:
- :target: https://pypi.python.org/pypi/pytest-xdist
- :alt: Python versions
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/pytest-dev/pytest-xdist/HEAD/README.rst
Documentation
- https://pytest-xdist.readthedocs.io/
```