This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Warning

This project is no longer maintained. See Django documentation for an alternative:

https://docs.djangoproject.com/en/dev/topics/testing/advanced/#integration-with-coverage-py

Summary

django-testcoverage is a package providing code coverage reports for built-in Django unit testing framework.

Installation

Just:

$ pip install django-testcoverage

Now add a following line to your settings.py:

TEST_RUNNER = 'testcoverage.test_runner.TestCoverageTestRunner'

And you’re ready to go!

Usage

Coverage reports are active for default, so you can just run your test as always:

$ ./manage.py test

This will print the coverage report for all Python modules in your project (including Django’s!) which is almost never what you want. You can specify which applications should be tested:

$ ./manage.py test myapp secondapp

If you do so, coverage reports will be computed only for listed apps. You can also globally specify which packages should be included in your coverage reports using adding TESTCOVERAGE_APPS to your settings.py, like:

TESTCOVERAGE_APPS = (
    'somepackage.foo',
    'myapp',
    'secondapp',
)

Then you can run tests for all applications, but only these listed in TESTCOVERAGE_APPS will be included in the coverage report.

You can also turn off coverage reporting by adding to your settings:

TESTCOVERAGE_ACTIVE = False

Author and license

Copyright (c) 2011-2014 Mikołaj Siedlarek <mikolaj.siedlarek at gmail.com>

Distributed on terms of 3-clause BSD license (AKA New BSD License or Modified BSD License).

For details conslut LICENSE.txt file.

Release History

Release History

0.1.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-testcoverage-0.1.3.tar.gz (3.2 kB) Copy SHA256 Checksum SHA256 Source Mar 24, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting