Skip to main content

Get pretty output for your Django unit tests

Project description

dj-testreporter

pip install testreporter

PyPI version

A thin wrapper around the default Django DiscoverRunner which can generate pretty reports from your tests

Usage

Once off

python manage.py test --testrunner=testreporter.runner.BDDTestRunner

Always use it

settings.py

TEST_RUNNER='testreporter.runners.BDDTestRunner'

Example output:

* ************
* TEST SUMMARY
* ************
* -
* ---------------------
* MYPROJECT.TESTS.TEST_MODELS
* ---------------------
*
*  SomeModelTestCase:
*  ---------------------
*   ✓ a test that passes
*   ✗ a test that fails

It will also create a file spec.txt. You can commit that to version control and then you have automatic release notes in the diff for your pull request.

Project details


Download files

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

Files for testreporter, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size testreporter-0.1.0.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page