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.2.0.tar.gz (15.1 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.2.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_prismtest-0.2.0.tar.gz
  • Upload date:
  • Size: 15.1 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.2.0.tar.gz
Algorithm Hash digest
SHA256 f796116fbc74a4eaa655441d17009d1db644b4d1ac5e5f9f8f67201700c970dc
MD5 3e44e4ce68485c35afa08f7a84520b4b
BLAKE2b-256 1cac70d8a11b6e71fdf705d73cde4e6ae79884069722f4a562b411b162ca7ae4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_prismtest-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6efc458b2164d529cc30b29ca315c995c22e281fccf310fb844af371a8a2b364
MD5 9b90be072491ba0e61507e1ce01e2aec
BLAKE2b-256 cd257c2209bbc345128c91b80670d27245ce48f332a07b2ef35c8ca8ae196a81

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