You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lou Wolford edited this page Jun 12, 2013
·
1 revision
Code coverage describes how much source code has been tested. It shows which parts of your code are being exercised by tests and which are not. If you ever decide to write your own tests, this is very helpful in seeing which parts of the code are lacking testing.
Install coverage.py tool - pip install coverage (while inside of the virtualenv)
Run - coverage run --source='.' manage.py test lrs (to generate the report)
Run - coverage report (to view the report)
You'll see a detailed listing of all code files with a coverage percentage.