# pytest-dev/pytest-xdist

pytest plugin for distributed testing and loop-on-failures testing modes.

Repository: https://github.com/pytest-dev/pytest-xdist
Canonical: https://ross.abutalabs.com/products/pytest-xdist
Homepage: https://pytest-xdist.readthedocs.io
Language: Python
License: MIT
License Family: permissive
Topics: hacktoberfest, pytest, pytest-plugin
Last push: 2026-08-25T09:55:18+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 28, longevity 100
- inputs: {"age_days": 4019, "days_push": 8, "days_rel": 428, "gap_med": 35, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1898, forks 280 (observed 2026-08-28T04:05:51.144084+00:00)

## What it is
pytest-xdist is a pytest plugin that adds distributed test execution modes, most notably running tests in parallel across multiple CPU cores. It also supports loop-on-failures mode for repeatedly rerunning failing tests.

## Use cases
- speed up pytest test suite by running tests in parallel across CPUs
- distribute tests across multiple worker processes
- rerun failing tests in a loop until they pass
- run tests on remote workers
- reduce CI pipeline test execution time

## When to choose
- your pytest suite is slow and tests can run independently in parallel
- you want to flake-hunt by looping failing tests repeatedly
- you need to spread tests across multiple processes or machines

## When to avoid
- your tests share mutable global state or databases that cannot be parallelized safely
- test ordering matters and cannot be made independent
- you use a test framework other than pytest

## Facets
- artifact type: plugin
- maturity: stable
- function: testing, e2e-testing, concurrency
- domain: testing, developer-tools
- platform: python, cli, cross-platform
- tags: pytest-plugin, parallel-testing, distributed-testing, test-runner, automation

## Member repositories
- pytest-dev/pytest-xdist (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:51.144084+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:12:47.120671+00:00, confidence not recorded.
  - readme: https://github.com/pytest-dev/pytest-xdist (fetched 2026-08-28T04:05:51.144084+00:00, sha eccd82911c4d)
  - registry_pypi: https://pypi.org/pypi/pytest-xdist/json (fetched 2026-08-29T10:52:01.399317+00:00, sha 7c1188bc7760)
- Data as of 2026-08-30T08:39:29.467469+00:00.
