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-sqland--pdbflags
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
Metadata
Release files for django-prismtest 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_prismtest-0.2.0.tar.gz | 15.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_prismtest-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.7 kB
Release files / django_prismtest-0.2.0.tar.gz
| Download URL | django_prismtest-0.2.0.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f796116fbc74a4eaa655441d17009d1db644b4d1ac5e5f9f8f67201700c970dc
|
|
BLAKE2b-256 checksum How to use checksums |
1cac70d8a11b6e71fdf705d73cde4e6ae79884069722f4a562b411b162ca7ae4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / django_prismtest-0.2.0-py3-none-any.whl
| Download URL | django_prismtest-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6efc458b2164d529cc30b29ca315c995c22e281fccf310fb844af371a8a2b364
|
|
BLAKE2b-256 checksum How to use checksums |
cd257c2209bbc345128c91b80670d27245ce48f332a07b2ef35c8ca8ae196a81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|