pytest-xdist
pytest xdist plugin for distributed testing, most importantly across multiple CPUs
Decision gist · record as of 2026-08-14
Yes. pytest-xdist is a mature, actively maintained plugin with no known vulnerabilities, low install friction, and permissive licensing. It directly addresses a common pain point—slow test suites—with minimal configuration overhead. Install it if your test suite takes long enough that parallelization would save meaningful time.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; pytest must be installed (a runtime dependency).
- Low install friction with only two runtime dependencies (execnet and pytest).
- Active maintenance with a recent release in July 2025, 1895 repository stars, and last commit on 2026-08-12 signal a well-maintained project.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing use in commercial and private projects with minimal restrictions—only requiring attribution and inclusion of the license text.
last release 2025-07-01 (409 days) · last repo commit 2026-08-12 · 1,895 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 177,097,162 downloads/mo, #236 on PyPI
Alternatives
Verify before relying
pip install pytest-xdist
pytest -n auto- Whether test isolation or ordering constraints apply when distributing tests across workers.
- Support for test frameworks or fixtures beyond standard pytest.
What it is and what it does
pytest-xdist is a pytest plugin that adds distributed test execution modes, most commonly parallelizing tests across multiple CPU cores on a single machine. It integrates directly into pytest's command-line interface, allowing developers to invoke parallel execution with a single flag like `-n auto`, which automatically spawns worker processes matching the number of available CPUs and distributes tests randomly among them.
The plugin depends on execnet for inter-process communication and pytest itself as its host framework. It supports Python 3.9 through 3.13 and is actively maintained by the pytest development team. The MIT license and low dependency footprint make it straightforward to add to existing test suites without significant compatibility concerns.
Use it for
- Speed up large test suites by running tests in parallel across all available CPU cores on a development machine.
- Reduce continuous integration pipeline duration by distributing tests across multiple worker processes.
- Distribute tests across multiple machines in a network for large-scale test execution (via execnet).
- Quickly validate changes locally before pushing by running the full test suite in a fraction of the time.
- Balance test load dynamically across workers to avoid bottlenecks from slow or fast test groups.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
pytest-xdist is a mature, actively maintained plugin with no known vulnerabilities, low install friction, and permissive licensing. It directly addresses a common pain point—slow test suites—with minimal configuration overhead. Install it if your test suite takes long enough that parallelization would save meaningful time.
Install
pytest-xdist on PyPI
Before you install
Low install friction with only two runtime dependencies (execnet and pytest). Active maintenance with a recent release in July 2025, 1895 repository stars, and last commit on 2026-08-12 signal a well-maintained project.
Requires Python 3.9 or later; pytest must be installed (a runtime dependency).
License in practice
MIT license is permissive, allowing use in commercial and private projects with minimal restrictions—only requiring attribution and inclusion of the license text.
Quickstart
pip install pytest-xdist
pytest -n auto
Verify before relying
- Whether test isolation or ordering constraints apply when distributing tests across workers.
- Support for test frameworks or fixtures beyond standard pytest.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesexecnetpytest |
| Maintenance | Actively maintained 409 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 177,097,162 / month, #236 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: PytestIntended Audience :: DevelopersOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Software Development :: Quality AssuranceTopic :: Software Development :: TestingTopic :: Utilities |
Evidence: pytest_xdist-3.8.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “speed up pytest”
- pytest-xdistpytest-xdist distributes pytest tests across multiple CPU cores or…
- pytest-asyncio-concurrentA pytest plugin that executes async test functions concurrently…
- pytest-hot-reloadingA pytest plugin that runs a daemon to watch and hot-reload test code,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also pytest-parallel · pytest-shard · concurrencytest · pytest-forked · pytest-circleci-parallelized · para · pytest-extra-durations · pytest-run-parallel · pytest-split · pytest-test-groups