Parallelize large pytest suites and isolate slow feedback loops with pytest-xdist
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:
:alt: Python versions
Extracted from upstream docs: https://raw.githubusercontent.com/pytest-dev/pytest-xdist/HEAD/README.rst