Achieve complete coverage of your Django application with this software. Ensure that all aspects of your code have been tested thoroughly with the help of comprehensive testing tools and improve functionality and reliability.
Using django-test-coverage is incredibly simple. Just add the following line to your django settings file:
TEST_RUNNER = 'django-test-coverage.runner.run_tests'
Once this is done, you can run tests with the command 'python manage.py test zoo', where zoo is the name of your application. The test runner will then evaluate all modules in the app and automatically add them to the coverage report.
Of course, if you want more flexibility, you can specify a set of modules to be included in the coverage report. To do this, just add the following line to your settings file:
COVERAGE_MODULES = ('zoo.baer', 'zoo.lion')
In this example, you would replace 'zoo' with the name of your application, and 'baer/lion' with the name of the module you want to include in the report.
Overall, django-test-coverage is a must-have for anyone looking to improve their Django testing workflow. Its ease of use, coupled with its powerful features, make it an invaluable addition to your development toolkit.
Version 0.1: N/A