Skip to content
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.

  1. Install coverage.py tool - pip install coverage (while inside of the virtualenv)
  2. Run - coverage run --source='.' manage.py test lrs (to generate the report)
  3. Run - coverage report (to view the report)

You'll see a detailed listing of all code files with a coverage percentage.

Clone this wiki locally