Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Safely parallelize Django and pytest-django test suites with Django --parallel, pytest-xdist, test isolation checks, randomized order detection, shared-resource sharding, locks, and load balancing. Use when enabling parallel tests, diagnosing failures under parallel execution, handling flaky Django tests, or making caches, files, queues, and external resources safe across workers.
.claude/skills/hashgraph-online-django-test-parallelization/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -20% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -5% | 0% |
| case-14 | ✗→✓ | ▲ Improved | -19% | 0% |
| case-22 | ✗→✓ | ▲ Improved | -11% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 115% | 0% |
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.
tblib, then run python manage.py test --parallel.pytest-xdist, then run pytest -n auto.bashpython -m pip install tblib python manage.py test --parallel python manage.py test --parallel 1 python manage.py test --reverse python -m pip install pytest-xdist pytest -n auto pytest -n auto --dist loadscope
For shared-resource patterns, read shared-resources.md.
pytest -n auto --dist loadscope for Django TestCase-heavy suites because class/module setup can be expensive.Before calling parallelization complete:
Other measured skills in the registry, with their headline benchmark lift.