django-rainbowtests 0.4.0

A colorful Django Test Runner.

This is a custom test runner for Django that gives you really colorful test output.

How do I use this?

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!

Python/Django Compatibility

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.

Coverage

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:

Use

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!

License

This code is distributed under the terms of the MIT license. See the LICENSE file.

MIT

Author

Brad Montgomery

Pip

django-rainbowtests==0.4.0

Classifiers

  • Environment :: Web Environment
  • Framework :: Django
  • Intended Audience :: Developers
  • License :: OSI Approved :: MIT License
  • Operating System :: OS Independent
  • Programming Language :: Python
  • Programming Language :: Python :: 2
  • Programming Language :: Python :: 2.6
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 3
  • Development Status :: 4 - Beta
  • Programming Language :: Python :: 3.4
  • Topic :: Software Development :: Libraries :: Python Modules
  • Topic :: Software Development :: Testing
  • Topic :: Internet :: WWW/HTTP
File Type Python Version Uploaded On Downloads
django-rainbowtests-0.4.0.tar.gz Source Aug. 3, 2015 711
Version Release Date
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
Date Package Version Action
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