summaryrefslogtreecommitdiff
path: root/docs/ref/django-admin.txt
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2015-09-10 14:06:06 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2015-09-10 14:37:51 +0200
commit710b4a70321148b470bf55c73d81170f07c839f9 (patch)
treea6ff0618faf1b8adb73e22863fba53c357c58855 /docs/ref/django-admin.txt
parent33c7c2a55770fe8ccc297a8ae13e04487b72b3a1 (diff)
Avoided running more test processes than necessary.
This reduces the time spent cloning databases. Thanks Tim for the suggestion.
Diffstat (limited to 'docs/ref/django-admin.txt')
-rw-r--r--docs/ref/django-admin.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 4a7b03de43..dff48ac460 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -1274,6 +1274,10 @@ By default ``--parallel`` runs one process per core according to
either by providing it as the option's value, e.g. ``--parallel=4``, or by
setting the ``DJANGO_TEST_PROCESSES`` environment variable.
+Django distributes test cases — :class:`unittest.TestCase` subclasses — to
+subprocesses. If there are fewer test cases than configured processes, Django
+will reduce the number of processes accordingly.
+
Each process gets its own database. You must ensure that different test cases
don't access the same resources. For instance, test cases that touch the
filesystem should create a temporary directory for their own use.