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.

Source Distribution

testreporter-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file testreporter-0.1.0.tar.gz.

File metadata

  • Download URL: testreporter-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for testreporter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 145de96f0f9ada08a5000e84365abb94f50c88e1ea9c1b4614d20cf2ccd1c09c
MD5 651183948c11d6c7d182d56ab0a0fe45
BLAKE2b-256 bc11b2fb5d0b352da8297f4bd2a88eb6f1d92992b893541f1a77111417c6b44f

See more details on using hashes here.

Supported by

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