pytest-parallel
a pytest plugin for parallel and concurrent testing
What it is and what it does
pytest-parallel is a pytest plugin that adds two execution modes: multiprocessing (via --workers) and multithreading (via --tests-per-worker), allowing you to run tests faster when they are thread-safe and use non-blocking I/O. It differs from pytest-xdist, which is better suited for tests that need process isolation or are not thread-safe; pytest-parallel targets scenarios like Selenium tests that manage little state and can benefit from concurrent execution within or across worker processes.
The plugin is configured via command-line flags: --workers sets the number of processes (defaulting to 1, or auto for one per core), and --tests-per-worker sets concurrent tests per worker (defaulting to 1, or auto for up to 50). However, the package has been abandoned since 2024-05-29, with the repository archived and no active maintenance, so compatibility with recent Python and pytest versions is uncertain.
Use it for:
- Speed up Selenium test suites that are thread-safe and can run concurrently without state conflicts.
- Run I/O-bound tests (e.g., HTTP requests) concurrently within worker processes to reduce wall-clock time.
- Distribute test execution across multiple CPU cores on Unix/Mac systems using the --workers auto flag.
- Execute a fixed number of concurrent tests per worker on Windows systems using --tests-per-worker.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A pytest plugin that runs tests in parallel using multiprocessing and concurrently using multithreading, designed for test suites that are thread-safe and benefit from non-blocking I/O.
No. The package is abandoned (last release 2021-10-10, repository archived as of 2024-05-29) and offers no active maintenance or compatibility updates. For parallel testing, prefer pytest-xdist (actively maintained) or native pytest parallelization features. If you have an existing codebase using pytest-parallel, consider migrating to a maintained alternative.
Install
pytest-parallel on PyPI
pip
pip install pytest-paralleluv
uv add pytest-parallelpoetry
poetry add pytest-parallelInstalling pytest-parallel
Before you install
Installation is straightforward with low friction, but the package is abandoned as of 2024-05-29 with no recent maintenance. The repository is archived, meaning no bug fixes or compatibility updates are forthcoming.
License in practice
MIT is a permissive license with minimal restrictions—you can use, modify, and distribute the package freely in commercial or private projects as long as you include the license notice.
Quickstart
pip install pytest-parallel
# In your test suite, run:
pytest --workers 2 --tests-per-worker 4
Unix or Mac required for the --workers flag; --tests-per-worker works on Unix, Mac, or Windows. Python 3.6+ required.
Verify before relying
- Whether the plugin remains compatible with modern pytest versions (last release was 2021-10-10).
- Real-world performance gains for your specific test suite compared to pytest-xdist or native pytest parallelization.
- Stability and edge cases with current Python 3.x versions, especially regarding multiprocessing behavior changes.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pytest, tblib |
| Maintenance | abandoned — 1,769 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 764,647/month — #5,122 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pytest_parallel-0.1.1-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
concurrencytestRuns unittest test suites concurrently across…
copyleft · top 15,000 on PyPI
pytest-shardDistributes pytest test execution across…
permissive · top 5,000 on PyPI
pypelnPypeln lets you build concurrent data pipelines…
permissive · top 15,000 on PyPI
pytest-circleci-parallelizedAdds a pytest plugin that automatically…
permissive · top 15,000 on PyPI
pytest-odoopytest-odoo is a pytest plugin that runs Odoo…
agpl · top 15,000 on PyPI
pytest-asyncio-concurrentA pytest plugin that executes async test…
permissive · top 15,000 on PyPI
pytest-forkedA pytest plugin that runs each test in a forked…
permissive · top 5,000 on PyPI
pytest_taggingA pytest plugin that lets you tag tests with…
permissive · top 15,000 on PyPI
pytest-cppA pytest plugin that discovers and runs C++…
permissive · top 15,000 on PyPI