This is a custom test runner for Django that gives you really colorful test output.
Install the latest release with:
pip install django-rainbowtests
Then, add one of the following settings. For the DiscoverRunner behavior that was introduced with Django 1.6, use the following:
TEST_RUNNER = 'rainbowtests.test.runner.RainbowDiscoverRunner'
If you want the old-style behavior (Django 1.5 or older), use:
TEST_RUNNER = 'rainbowtests.test.simple.RainbowTestSuiteRunner'
Then run your tests!
This code should work with Django 1.4 - 1.8, Python 2.7 and Python 3.4. If you find otherwise, please open an Issue.
As of version 0.3.0, there is (experimental) support for coverage, and 0.4.0 cleaned it up by introducing a new test runner:
TEST_RUNNER = 'rainbowtests.test.runner.RainbowDiscoverCoverageRunner'
and run your tests as normal (python manage.py test <whatever>), and if you have coverage installed, you should see a report when your tests complete. You could also use coverage html and open htmlcov/index.html for a more fancy coverage report. Make sure you have a .coveragerc file, though!
This code is distributed under the terms of the MIT license. See the LICENSE file.
|File||Type||Python Version||Uploaded On||Downloads|
|django-rainbowtests-0.4.0.tar.gz||Source||Aug. 3, 2015||711|
|0.4.0||Aug. 3, 2015|
|0.3.0||April 25, 2015|
|0.2.1||July 19, 2014|
|0.2.0||July 19, 2014|
|0.1.3||March 6, 2013|
|0.1.2||Feb. 14, 2013|
|0.1.1||Jan. 4, 2013|
|Aug. 26, 2015, 12:22 a.m.||django-rainbowtests||0.1.3||Release Created|
|Aug. 26, 2015, 12:22 a.m.||django-rainbowtests||0.1.2||Release Created|
|Aug. 26, 2015, 12:22 a.m.||django-rainbowtests||0.4.0||Release Created|
|Aug. 26, 2015, 12:22 a.m.||django-rainbowtests||0.2.0||Release Created|
|Aug. 26, 2015, 12:22 a.m.||django-rainbowtests||0.2.1||Release Created|
|Aug. 26, 2015, 12:22 a.m.||django-rainbowtests||0.3.0||Release Created|
|Aug. 26, 2015, 12:22 a.m.||django-rainbowtests||0.1.1||Release Created|
|Aug. 26, 2015, 12:22 a.m.||django-rainbowtests||Package Created|