Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/calvinchengx/django-coverage
django-coverage by Mikhail Korobov using Ned Batchelder's excellent coverage.py
https://github.com/calvinchengx/django-coverage
Last synced: 26 days ago
JSON representation
django-coverage by Mikhail Korobov using Ned Batchelder's excellent coverage.py
- Host: GitHub
- URL: https://github.com/calvinchengx/django-coverage
- Owner: calvinchengx
- License: apache-2.0
- Created: 2011-11-18T03:19:36.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-11-18T03:21:35.000Z (about 13 years ago)
- Last Synced: 2024-11-16T01:36:56.913Z (3 months ago)
- Language: Python
- Homepage:
- Size: 199 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
========================
Django Test Coverage App
========================.. contents::
What is it?
===========
A test coverage reporting tool that utilizes `Ned Batchelder`_'s
excellent coverage.py_ to show how much of your code is exercised with
your tests.Dependencies
============
* Django_ 1.2 and above. For earlier versions, try version 1.0.3 of
django-coverage.
* coverage.py_How do I use it?
================
Install as a Django app
-----------------------
1. Place the entire ``django_coverage`` app in your third-party apps
directory.
2. Update your ``settings.INSTALLED_APPS`` to include ``django_coverage``.
3. Include test coverage specific settings in your own settings file.
See ``settings.py`` for more detail.Once you've completed all the steps, you'll have a new custom command
available to you via ``manage.py test_coverage``. It works just like
``manage.py test``.Use it as a test runner
-----------------------
You don't have to install ``django_coverage`` as an app if you don't want
to. You can simply use the test runner if you like.1. Update ``settings.TEST_RUNNER =
'django_coverage.coverage_runner.CoverageRunner'``
2. Include test coverage specific settings in your own settings file.
See ``settings.py`` for more detail.
3. Run ``manage.py test`` like you normally do.And that's it.
.. _George Song: mailto:[email protected]
.. _55 Minutes: http://www.55minutes.com/
.. _Ned Batchelder: http://nedbatchelder.com
.. _coverage.py: http://bitbucket.org/ned/coveragepy/
.. _Django: http://www.djangoproject.com/