coverage_enable_subprocess
enable python coverage for subprocesses
What it is and what it does
This package solves the problem of measuring code coverage across subprocess boundaries in Python. When you run tests or applications that spawn child processes, coverage.py normally only tracks the parent process. This package installs a .pth file into your Python environment that activates coverage.py's process_startup feature automatically, enabling coverage collection in subprocesses without requiring explicit code changes.
The package is designed for test suites that spawn multiple processes in parallel or that change directories during execution. You configure it by setting the COVERAGE_PROCESS_START environment variable to point to a .coveragerc file, and then any Python process started in that environment will automatically have coverage tracking enabled. The package depends only on coverage being installed.
Use it for:
- Measure code coverage in test suites that spawn worker processes or run tests in parallel.
- Track coverage across multiprocessing applications without modifying application code.
- Collect coverage data from subprocess calls in build or deployment scripts.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Installs a .pth file that automatically enables coverage.py's subprocess tracking in your Python environment, allowing coverage measurement across spawned processes without manual instrumentation.
No. The package is abandoned (last release 2016, last commit 2018) with no indication of compatibility with modern Python or coverage versions. The problem it solves—subprocess coverage tracking—may now be better addressed by current coverage.py features or alternative approaches. Only install if you are locked to a legacy Python version and coverage version where this package is known to work.
Install
coverage-enable-subprocess on PyPI
pip
pip install coverage-enable-subprocessuv
uv add coverage-enable-subprocesspoetry
poetry add coverage-enable-subprocessInstalling coverage_enable_subprocess
Before you install
Installation is straightforward with no complex dependencies beyond coverage itself. However, the package is abandoned—last release was in 2016 and last commit in 2018—so it may not work reliably with modern Python or coverage versions.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it safe for most projects.
Quickstart
pip install coverage-enable-subprocess
export COVERAGE_PROCESS_START=$PWD/.coveragerc
python your_script.py
coverage report
Requires coverage to be installed; the .pth mechanism depends on Python's site-packages directory being writable and site.py being active.
Verify before relying
- Compatibility with current coverage.py versions and modern Python (3.8+) is unclear given the 2016 release date.
- Whether the .pth mechanism still works as intended on current Python installations and virtual environments.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — coverage |
| Maintenance | abandoned — 3,747 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 223,678/month — #9,242 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: coverage_enable_subprocess-1.0-py2.py3-none-any.whl
Tags
More Quality Assurance packages
Coverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
blackBlack reformats Python source code to a…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
django-coverage-pluginA coverage.py plugin that measures test…
permissive · top 5,000 on PyPI
covdefaultsA coverage plugin that automatically applies…
permissive · top 15,000 on PyPI
pytest-coverpytest-cover is a pytest plugin for measuring…
permissive · top 15,000 on PyPI
coverage-conditional-pluginA coverage.py plugin that applies conditional…
permissive · top 15,000 on PyPI
pytest-forkedA pytest plugin that runs each test in a forked…
permissive · top 5,000 on PyPI
pytest-covA pytest plugin that measures code coverage…
permissive · top 1,000 on PyPI
cov-corecov-core provides the internal plugin…
permissive · top 15,000 on PyPI
mutmutMutmut is a mutation testing system for Python…
permissive · top 5,000 on PyPI
python-coverallsUploads Python code coverage reports to…
permissive · top 15,000 on PyPI