skip to navigation
skip to content

django-discoverage 0.2.1

Jannis Leidel and Carl Meyer's django-discover-runner with coverage.

Latest Version: 1.0.0

Combines Mikhail Korobov’s django-coverage with Jannis Leidel and Carl Meyer’s django-discover-runner.


One of the objectives of django-discover-runner is to allow separating a Django app’s tests from the code it’s testing. Since tests no longer reside in an app, django-discoverage needs a different way to know which apps to include in the coverage report. It currently collects apps (packages) by looking for an attribute (by default TESTS_APPS) on each TestCase instance in the suite.

For example:

class MyTestCase(TestCase):
    TESTS_APPS = ('mycoolapp', 'myproject.anothercoolapp')

All modules in the listed apps (except those specified in OMIT_MODULES) will appear in the standard coverage report.


The attribute django-discoverage looks for on each TestCase instance.
Modules not to be traced by coverage. See the coverage API documentation for more details.


  • Investigate discovering the apps being tested from the test modules imports (this could be really annoying)
File Type Py Version Uploaded on Size
django-discoverage-0.2.1.tar.gz (md5) Source 2012-10-24 3KB