django-slowtests
locate your slowest tests
What it is and what it does
django-slowtests is a Django test runner plugin that wraps the standard test runner to automatically measure and report execution time for each test. After your test suite completes, it displays a ranked list of the slowest tests, optionally filtered by a configurable threshold. You can save the report to a JSON file for further analysis.
The package has no runtime dependencies beyond Django itself and integrates by replacing Django's TEST_RUNNER setting with a custom runner class. It was designed for Django 1.6–1.11 and Python 2.7 and 3.6, but has received no updates since 2019 and is no longer actively maintained.
Use it for:
- Identify which tests are consuming the most time during a test run to prioritize optimization efforts.
- Export test performance data to JSON for trend analysis or integration with CI/CD dashboards.
- Set a threshold to focus on tests exceeding a specific duration, filtering out fast tests from reports.
- Diagnose performance regressions by comparing slow test reports across different versions or branches.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates with Django's test runner to identify and report the slowest tests in your suite, helping you spot performance bottlenecks during development.
No. The package is abandoned (last release 2019-02-12, no updates for 2740 days) and compatibility with modern Django and Python versions is unverified. Modern Django includes built-in test timing features and third-party test runners have better maintenance. Use only if you are locked to Django 1.6–1.11 and Python 2.7 or 3.6.
Install
django-slowtests on PyPI
pip
pip install django-slowtestsuv
uv add django-slowtestspoetry
poetry add django-slowtestsInstalling django-slowtests
Before you install
High install friction due to lack of runtime dependencies but the package is abandoned as of 2019-02-12 with no updates for 2740 days. Last commit was 2021-11-23, but the project shows no active maintenance. Compatibility with modern Django and Python versions is unverified.
License in practice
MIT license is permissive and poses no restrictions on use, modification, or distribution in your own projects.
Quickstart
pip install django-slowtests
# In Django settings.py:
TEST_RUNNER = 'django_slowtests.testrunner.DiscoverSlowestTestsRunner'
NUM_SLOW_TESTS = 10
SLOW_TEST_THRESHOLD_MS = 200
# Run tests:
python manage.py test
Requires Django and Python; compatibility with versions released after 2019 is not documented or verified.
Verify before relying
- Whether the package works with Django versions released after 1.11 (last tested version in docs)
- Whether the package is compatible with Python 3.7+ (docs only mention up to 3.6)
- Whether the package's test runner integrates correctly with modern Django test discovery
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,740 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 110,921/month — #12,437 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: django-slowtests-1.1.1.tar.gz
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
django-picklingSpeeds up Django model pickling by 2-3 times…
permissive · top 15,000 on PyPI
django-noseIntegrates the nose test runner into Django's…
permissive · top 15,000 on PyPI
django-cprofile-middlewareMiddleware that profiles Django view execution…
permissive · top 15,000 on PyPI
pytest-timerPytest plugin that measures and reports the…
permissive · top 15,000 on PyPI
colour-runnerAdds colored output to Python's unittest test…
permissive · top 15,000 on PyPI
djdt-flamegraphIntegrates flame graph visualization into…
permissive · top 15,000 on PyPI
django-herokuConfigures Django applications for Heroku…
permissive · top 15,000 on PyPI
django-sslserverProvides an SSL-enabled development server for…
permissive · top 15,000 on PyPI