skip-covered with 100% coverage throws a "no data" error · Issue #549 · nedbat/coveragepy (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
Originally reported by Havoc Pennington (Bitbucket: havocp, GitHub: havocp)
We run tests something like this:
#!shell
python -m pytest -vv --cov=modname --cov-report=term-missing:skip-covered --cov-report=html --cov-fail-under=100 --no-cov-on-fail --cov-config=.coveragerc modname/tests
With 4.2, with 100% coverage this exited successfully, with 4.3.1 it results in "ERROR: Failed to generate report: No data to report."
If I add uncovered code (and remove the fail-under=100), then it exits successfully. If I remove skip-covered then it exits successfully.