# pytest-xdist

> pytest xdist plugin for distributed testing, most importantly across multiple CPUs

- **URL**: https://www.freshcrate.ai/projects/pytest-xdist
- **Author**: pypi
- **Category**: Frameworks
- **Latest version**: `3.8.0` (2026-04-21)
- **License**: Unknown
- **Source**: https://github.com/pytest-dev/pytest-xdist
- **Homepage**: https://pypi.org/project/pytest-xdist/
- **Language**: Python
- **GitHub**: 1,830 stars, 261 forks
- **Registry**: pypi (`pytest-xdist`)
- **Tags**: `pypi`

## Description

============
pytest-xdist
============

.. image:: http://img.shields.io/pypi/v/pytest-xdist.svg
    :alt: PyPI version
    :target: https://pypi.python.org/pypi/pytest-xdist

.. image:: https://img.shields.io/conda/vn/conda-forge/pytest-xdist.svg
    :target: https://anaconda.org/conda-forge/pytest-xdist

.. image:: https://img.shields.io/pypi/pyversions/pytest-xdist.svg
    :alt: Python versions
    :target: https://pypi.python.org/pypi/pytest-xdist

.. image:: https://github.com/pytest-dev/pytest-xdist/workflows/test/badge.svg
    :target: https://github.com/pytest-dev/pytest-xdist/actions

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/ambv/black

The `pytest-xdist`_ plugin extends pytest with new test execution modes, the most used being distributing
tests across multiple CPUs to speed up test execution::

    pytest -n auto

With this call, pytest will spawn a number of workers processes equal to the number of available CPUs, and distribute
the tests randomly across them.

Documentation
=============

Documentation is available at `Read The Docs <https://pytest-xdist.readthedocs.io>`__.

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `3.8.0` | 2026-04-21 | Low | Imported from PyPI (3.8.0) |
| `v3.8.0` | 2025-07-01 | Low | Release v3.8.0 |
| `v3.8.0` | 2025-07-01 | Low | Latest release: v3.8.0 |
| `v3.8.0` | 2025-07-01 | Low | Latest release: v3.8.0 |
| `v3.8.0` | 2025-07-01 | Low | Latest release: v3.8.0 |
| `v3.8.0` | 2025-07-01 | Low | Latest release: v3.8.0 |
| `v3.8.0` | 2025-07-01 | Low | Latest release: v3.8.0 |
| `v3.8.0` | 2025-07-01 | Low | Latest release: v3.8.0 |
| `v3.8.0` | 2025-07-01 | Low | Latest release: v3.8.0 |
| `v3.8.0` | 2025-07-01 | Low | Latest release: v3.8.0 |

## Citation

- HTML: https://www.freshcrate.ai/projects/pytest-xdist
- Markdown: https://www.freshcrate.ai/projects/pytest-xdist.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/pytest-xdist/deps

_Generated by freshcrate.ai. Indexes pypi releases for AI-agent ecosystem packages._
