Skip to main content

A colorful Django Test Runner.

Project description

Current Release License

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-rainbowtests-0.4.1.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file django-rainbowtests-0.4.1.tar.gz.

File metadata

File hashes

Hashes for django-rainbowtests-0.4.1.tar.gz
Algorithm Hash digest
SHA256 758de3fb86d9378855383a4daff63eb0fd61b8f7de8dae92f2f41d8c1925ec90
MD5 d394e7c6a06a86dc92e27b72cfa39432
BLAKE2b-256 97f46d8159dfddc36ea59b2fb31c4ab93d977af2e18a6403265c3f62e68568cb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page