-
Notifications
You must be signed in to change notification settings - Fork 146
Code Coverage
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.