Performance: Coverage reporting
Coverage reporting affects development workflow speed and CI pipeline efficiency by adding overhead during test runs.
Jump into concepts and practice - no test required
python manage.py test --with-coverage --cover-package=myapp
# Generate HTML report only on demand or in CI pipelinepython manage.py test --with-coverage --cover-html --cover-package=myapp
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Run coverage with HTML report every test | 0 | 0 | 0 | [X] Bad |
| Run coverage measurement only, generate report on demand | 0 | 0 | 0 | [OK] Good |
coverage run manage.py test, what command shows a summary of coverage results in the terminal?coverage run manage.py test but coverage report shows 0% coverage. What is the likely cause?