Registry / testing / django-slowtests

django-slowtests

JSON →
library1.1.1pypypiunverified

A Django test runner that identifies and reports your slowest tests. Version 1.1.1, stable but low maintenance.

pip install django-slowtests
INSTALL
IMPORT
SIG · DJANGO-SLOWTESTS
D
django-slowtests
testingpythonv1.1.1
Install
4.3s avg
Import
Disk
66MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.1.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 67.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.3s · import 0.000s · 68MB
66MB installed
● package 66MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SlowTestRunner
from django_slowtests import SlowTestRunner
from django_slowtests.testrunner import SlowTestRunner

Configure the test runner in settings.py, then run tests as usual.

# settings.py TEST_RUNNER = 'django_slowtests.testrunner.SlowTestRunner' SLOW_TEST_THRESHOLD_MS = 200 # optional # run tests # python manage.py test
Debug
Known issues
gotchaThe package does not support pytest; only works with Django's manage.py test.
fix
Use pytest with --durations option instead.
affects: all
gotchaThe output can be verbose; use SLOW_TEST_THRESHOLD_MS to filter.
fix
Set SLOW_TEST_THRESHOLD_MS to a value in milliseconds to only show tests above threshold.
affects: all
Upgrade
Version history
1.1.1latest on PyPI · released Feb 12, 2019
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
Amazon
1
Resources
django-slowtests — pip install django-slowtests · libregistry