django-test-parallelization
Installation
SKILL.md
Django Test Parallelization
Parallel test execution is a multiplier after a suite is isolated. Treat failures under parallel execution as evidence of hidden shared state until proven otherwise.
Readiness Workflow
-
Measure serial runtime first.
- If the suite is already dominated by startup or database creation, parallelism may not help enough on its own.
-
Check isolation before enabling parallelism as the default.
- Run in reverse order.
- Run with randomized order when reverse order is not enough.
- Preserve random seeds so failures can be reproduced.
-
Enable the runner deliberately.
- Django runner: install
tblib, then runpython manage.py test --parallel. - pytest-django: install
pytest-xdist, then runpytest -n auto.
- Django runner: install