Skip to main content

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

Project description

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

Usage

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.

Settings

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

TODO

  • Investigate discovering the apps being tested from the test modules imports (this could be really annoying)

Project details


Release history Release notifications

History Node

1.0.0

History Node

0.7.2

History Node

0.7.1

History Node

0.7.0

History Node

0.6.2

History Node

0.6.1

History Node

0.6.0

History Node

0.5.0

History Node

0.4.0

History Node

0.3.1

History Node

0.3.0

This version
History Node

0.2.1

History Node

0.2.0

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-discoverage-0.2.1.tar.gz (3.6 kB) Copy SHA256 hash SHA256 Source None Oct 24, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page