Skill Detail

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.

CI/CD IntegrationsMulti-Framework
CI/CD Integrations Multi-Framework Security Reviewed
⭐ 1.8k GitHub stars
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill parallelize-large-pytest-suites-and-isolate-slow-feedback-loops-with-pytest-xdist Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Tools required
Python environment, pytest, pytest-xdist, and a pytest-compatible test suite with enough local or CI worker capacity to parallelize
Install & setup
Install pytest-xdist into the same environment as pytest, then run the target suite with an xdist worker option such as -n auto or another documented distribution mode in local or CI execution.
Author
pytest-dev
Publisher
Organization
Last updated
Apr 24, 2026
Quick brief

Use pytest-xdist when an agent needs to cut Python test runtime by distributing a pytest suite across multiple workers or CPUs. Invoke this instead of using pytest normally when the job is specifically parallel or distributed test execution and feedback-loop reduction, not ordinary single-process test runs. The scope boundary is crisp: extend pytest with worker-based execution modes such as -n auto to speed up suites and surface slow-path behavior, which keeps this skill-shaped rather than a generic testing-framework listing.