Skip to main content

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)

Metadata

Release files for django-discoverage 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-discoverage 0.2.1
File Size Uploaded
django-discoverage-0.2.1.tar.gz 3.6 kB Details

Release files / django-discoverage-0.2.1.tar.gz

Download URL django-discoverage-0.2.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
60c28a6fc9fd3dd20a7a0f1013fdb8ae2517f4617ad5122efe094fcce17f21d0
BLAKE2b-256 checksum
How to use checksums
74cdfcbe61c55094de286abf5af2a2ce688937f528fd93f27ea48115fec1dd22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.0.0

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.1

1 release file

0.3.0

1 release file

This release

0.2.1 This release

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page