Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

A simple way to get your django application's test coverage.

Project description

Django Test Coverage

Overview

The test runner is an extended version of the default Django test runner. It adds the ability to get coverage reports from defined modules or tested apps.

Usage

Simple add the line

TEST_RUNNER = ‘django_test_coverage.runner.run_tests’

to your django settings file. If you run the test with

python manage.py test zoo

the test runner will evaluate all modules in the app zoo and add them to the coverage report. You can also specify a set of modules by adding the line

COVERAGE_MODULES = (‘zoo.baer’, ‘zoo.lion’)

to your settings file. In this example zoo should be replaced with your application name and baer/lion with your module included in the reported.

Limitations

So far no implementation to wrap around djangos PostGIS test runner.

Changelog

0.1 (2009-03-03)

  • Initial Release

Project details


Download files

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

Files for django-test-coverage, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size django-test-coverage-0.1.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page