Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

django-test-coverage

Package Overview
Maintainers
3
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Source code not available
We could not scan this package. Some page functionalities have been disabled

django-test-coverage

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

pipPyPI
Metadata Only
Version
0.2
Maintainers
3

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.

It requires Ned Batchelder's coverage.py: http://nedbatchelder.com/code/modules/coverage.html

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 foo

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

COVERAGE_MODULES = ('foo.bar', 'foo.baz')

to your settings file. In this example foo should be replaced with your application name and bar/baz with your module included in the reported.

Limitations

There is no implementation to wrap around Django's PostGIS test runner.

Changelog

0.1 (2009-03-03)

  • Initial Release

0.2 (2012-08-07)

  • New maintainer
  • Added Django 1.4 compatibility
  • Added support for specifying a default set of apps to perform coverage on
  • Misc bugfixes & cleanup

Keywords

django

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts