목차

django coverage

coverage 설치

snippet.bash
pip install coverage

Run

snippet.bash
coverage run --source='.' manage.py test myapp

report

snippet.bash
coverage report

html

snippet.bash
coverage html

프로젝트 폴더에 htmlconv폴더가 생성됩니다. 여기에서 index.html을 브라우저에서 확인합니다.

출처


관련 문서