cov-core
raw JSON → 1.15.0 verified Fri May 01 auth: no python maintenance
Plugin core for use by pytest-cov, nose-cov and nose2-cov. Provides a shared coverage core for test runners. Current version: 1.15.0, last released 2016. In maintenance mode.
pip install cov-core Common errors
error ModuleNotFoundError: No module named 'cov_core' ↓
cause Library not installed or wrong import name (hyphen instead of underscore).
fix
Install with 'pip install cov-core' and import as 'from cov_core import CovCore'
error ImportError: cannot import name 'CovCore' ↓
cause Attempting to import an older version or misspelled name.
fix
Ensure cov-core>=1.15.0 is installed and use 'from cov_core import CovCore'
Warnings
deprecated cov-core has been in maintenance mode since 2016. New projects should use coverage and pytest-cov directly. ↓
fix Use pytest-cov (which depends on coverage) directly.
gotcha Import path uses underscore: cov_core, not cov-core. ↓
fix When importing in Python, use from cov_core import CovCore
Imports
- CovCore
from cov_core import CovCore
Quickstart
# cov-core is not typically used directly. Instead use pytest-cov:
# pip install pytest-cov
# Run tests with: pytest --cov=myproject tests/