skillfed

django-slowtests

locate your slowest tests

django-slowtests v1.1.1 110.9K downloads/30d#12,437 on PyPI181
Permissive license MIT Abandoned released

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-slowtests

uv

uv add django-slowtests

poetry

poetry add django-slowtests

Installing 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

Environment :: Web EnvironmentFramework :: DjangoIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Topic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Testing

Tags

django test performance profilingidentify slow tests djangotest execution time reportingdjango test runner slowest testsfind performance bottlenecks teststest duration analysis django
django-testingperformance-profilingabandoned

More Python Modules packages