coverage
Package — TestingPython 3.8+Intermediate
Measure code coverage; shows untested lines/branches
Quick Info
- Documentation
- Official Docs
- Python Version
- 3.8+
- Dependencies
- None (C extension)
- Install
pip install coverage
Learn by Difficulty
Quick Example
python
# Install: pip install coverage import coverage # Basic coverage usage print(f"Using coverage") # See documentation for detailed examples
coverage is a third-party package. Measure code coverage; shows untested lines/branches. Install with: pip install coverage
Try in PlaygroundTags
packagetestingcode-coveragequality
Related Items
pytest
Package — Testing
Feature-rich testing: fixtures, parametrize, plugins, auto-discovery
pytest-cov
Package — Testing
Pytest plugin for coverage.py integration
unittest
Stdlib — Testing
Built-in unit testing framework (TestCase, assertions, runners)
tox
Dev Tool — CI/CD
Test Python packages across multiple environments and versions