concurrencytest
Run unittest test suites concurrently
Decision gist · record as of 2026-08-14
Yes, if you use unittest and need faster test execution on Unix-like systems. Low install friction, active maintenance, no vulnerabilities, and straightforward integration make it a practical choice. No if you use Windows, pytest, or have a copyleft-incompatible license requirement. Yes-with-conditions if your tests depend on shared module state or require careful isolation—verify that parallel execution doesn't break test assumptions.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Unix-like OS with os.fork() support (Linux, macOS, BSD); does not work on Windows.
- Requires Python 3.10 or later.
- Low install friction; pure Python wheel with only two runtime dependencies (testtools and python-subunit).
License · maintenance · safety
GPL-2.0-or-later (copyleft) — GPL-2.0-or-later (copyleft) means any code that links this package must be distributed under compatible terms. Acceptable for internal tools and open-source projects, but problematic for proprietary software.
last release 2026-03-13 (154 days) · last repo commit 2026-08-03 · 57 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 363,276 downloads/mo, #7,224 on PyPI
Alternatives
Verify before relying
import unittest
from concurrencytest import ConcurrentTestSuite
suite = unittest.defaultTestLoader.loadTestsFromTestCase(MyTestCase)
concurrent_suite = ConcurrentTestSuite(suite)
unittest.TextTestRunner().run(concurrent_suite)- Whether test isolation is guaranteed when tests share module-level state or fixtures across worker processes.
- Performance characteristics with very large test suites or tests with significant setup/teardown overhead.
- Compatibility with pytest or other test runners beyond unittest.
What it is and what it does
concurrencytest wraps the standard unittest TestSuite to run tests in parallel across multiple worker processes instead of sequentially. It uses fork-based process spawning and distributes individual tests or test classes to workers, defaulting to one process per CPU core. The package provides two partitioning strategies: round-robin (default) spreads tests evenly to avoid load imbalance, and class-local groups all tests from the same TestCase class onto a single worker to preserve setUpClass/tearDownClass semantics.
The package is designed for developers who want to speed up long-running test suites without rewriting their tests. It integrates directly with unittest's standard test loading and running infrastructure, so existing test code requires only a wrapper around the suite object. Dependencies on testtools and python-subunit provide the underlying test distribution and result aggregation machinery.
Use it for
- Speed up a large unittest suite that runs sequentially in 10+ seconds by distributing tests across CPU cores.
- Run integration tests that are I/O-bound (database, network) in parallel to reduce total wall-clock time.
- Preserve test class lifecycle (setUpClass/tearDownClass) while parallelizing by using partition_tests_by_class.
- Distribute tests across a fixed number of worker processes (e.g., 4) to control resource usage on CI systems.
- Benchmark test suite performance improvements by comparing sequential vs. concurrent execution times.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use unittest and need faster test execution on Unix-like systems.
Low install friction, active maintenance, no vulnerabilities, and straightforward integration make it a practical choice. No if you use Windows, pytest, or have a copyleft-incompatible license requirement. Yes-with-conditions if your tests depend on shared module state or require careful isolation—verify that parallel execution doesn't break test assumptions.
Install
concurrencytest on PyPI
Before you install
Low install friction; pure Python wheel with only two runtime dependencies (testtools and python-subunit). Actively maintained with recent commits and no known vulnerabilities.
Requires Unix-like OS with os.fork() support (Linux, macOS, BSD); does not work on Windows. Requires Python 3.10 or later.
License in practice
GPL-2.0-or-later (copyleft) means any code that links this package must be distributed under compatible terms. Acceptable for internal tools and open-source projects, but problematic for proprietary software.
Quickstart
import unittest
from concurrencytest import ConcurrentTestSuite
suite = unittest.defaultTestLoader.loadTestsFromTestCase(MyTestCase)
concurrent_suite = ConcurrentTestSuite(suite)
unittest.TextTestRunner().run(concurrent_suite)
Verify before relying
- Whether test isolation is guaranteed when tests share module-level state or fixtures across worker processes.
- Performance characteristics with very large test suites or tests with significant setup/teardown overhead.
- Compatibility with pytest or other test runners beyond unittest.
Package facts
| License | GPL-2.0-or-later copyleft |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespython-subunittesttools |
| Maintenance | Actively maintained 154 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 363,276 / month, #7,224 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersIntended Audience :: Information TechnologyOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Testing |
Evidence: concurrencytest-0.1.11-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “parallel unittest execution”
- concurrencytestRuns unittest test suites concurrently across multiple worker…
- stestrstestr is a parallel test runner for Python unittest suites that…
- zope.testrunnerA test runner for Python projects with support for test layers,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also pytest-asyncio-concurrent · stestr · pytest-xdist · pytest-parallel · robotframework-pabot · testscenarios · testresources · pytest-test-groups · pytest-split · pytest-split-tests