Skip to main content

A modern, colorful Django test runner with real-time spinners, syntax-highlighted output, and beautifully formatted test results.

Project description

django-prismtest

A modern, colorful Django test runner with real-time spinners, syntax-highlighted output, and beautifully formatted test results.

Features

  • Real-time Braille-dot spinner while each test runs
  • Colored pass/fail/error/skip indicators with Unicode icons
  • Per-test timing and "slowest tests" report
  • Rich-formatted summary panel with pass/fail counts
  • Syntax-highlighted tracebacks with project-code emphasis
  • Drop-in replacement for Django's DiscoverRunner
  • Respects Django's --debug-sql and --pdb flags

Requirements

  • Python 3.10+
  • Django 4.2+
  • Rich 13.0+

Installation

pip install django-prismtest

Or with uv:

uv add django-prismtest

Quick start

Add to your Django settings:

TEST_RUNNER = "django_prismtest.runner.PrismDiscoverRunner"

Then run tests as usual:

python manage.py test

Configuration

Verbosity levels

django-prismtest follows Django's built-in --verbosity flag:

Level Flag Behavior
2 (default) -v 2 Per-test results with spinner, icons, and timing
1 -v 1 Dot-style progress (....FE..s)
0 -v 0 Summary only

PRISMTEST_HIGHLIGHT_PATH

Set this in your Django settings to highlight your project's code in tracebacks:

PRISMTEST_HIGHLIGHT_PATH = "/path/to/your/project/"

Lines from this path will appear in bold yellow, making it easy to spot your code in stack traces.

Development

# Install dependencies
uv sync --group dev

# Run tests
uv run python -m pytest tests/

# Run the visual demo
uv run python main.py

License

MIT

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_prismtest-0.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_prismtest-0.1.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_prismtest-0.1.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for django_prismtest-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cdff59acb0bac22fb7a08c17406500aefa6ede2fe71438ab3bf131ab1e9b542c
MD5 eb3d70b922e57bca0c18c0aa209f4f48
BLAKE2b-256 bce5c8ed8920d3eb1b71c997d7790ac19ddbbc739b639cb6d5b7b2ab278a8d32

See more details on using hashes here.

File details

Details for the file django_prismtest-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_prismtest-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6778a330374b3fc572c14d156d40dcfaa730bfba16712c7f846c3cdf16bd38a3
MD5 59760137c1cc85e8124b99cb73b992cf
BLAKE2b-256 12a40da12affb521003318722cfae4f6ac52753541edc2b106ce9506e90799dc

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