Allow excluding entire modules/packages · Issue #118 · nedbat/coveragepy (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
Originally reported by Ram Rachum (Bitbucket: coolrr, GitHub: coolrr)
Allow excluding entire modules/packages from coverage measurement by including some identifiable string in their source, similarly to "pragma: no cover".
Here's a suggestion on how to do this, feel free to suggest alternatives: A line "pragma: no module cover" in a module will cause it not to be measured. A "pragma: no package cover" in an __init__.py
file will cause the entire package, (including any submodules, subpackages, etc.) not to be measured.