pytest-xdist logo

pytest-xdist

Pytest plugin for distributed test execution across multiple CPUs and machines, plus loop-on-failures modes to speed up large test suites.

-

Our Verdict

Mandatory once your pytest suite crosses a few minutes, though it will expose hidden coupling between tests.

Pros

  • Distributes tests across CPUs and machines
  • Loop-on-failure mode speeds debugging
  • Massive wall-clock gains on large suites
  • Battle-tested in big Python codebases

Cons

  • Test isolation bugs surface under parallelism
  • Shared fixtures need careful scoping
  • DB tests often need per-worker databases
Best for: Python teams with test suites over 2 minutes on a single worker Not for: Small codebases where parallelism adds complexity without payoff

When to Use pytest-xdist

Good fit if you need

  • Distribute pytest tests across multiple CPU cores
  • Run test suites in parallel across remote machines
  • Loop-on-failures mode to reproduce intermittent bugs
  • Speed up large Python test suites by 4-8x in CI

Lock-in Assessment

Low 5/5
Lock-in Score
5/5

pytest-xdist Pricing

Pricing Model
free
Free Tier
Yes
Entry Price
Enterprise Available
No
Transparency Score

Beta — estimates may differ from actual pricing

1,000
1001K10K100K1M

Estimated Monthly Cost

$25

Estimated Annual Cost

$300

Estimates are approximate and may not reflect current pricing. Always check the official pricing page.

Project Health

A

Health Score

1.8k 261
Bus Factor

10

Last Commit

today

Release Freq

147d

Open Issues

301

Issue Response

N/A

License

MIT

Last checked: 2026-04-21

Community Discussion

Comments powered by Giscus (GitHub Discussions). You need a GitHub account to comment.