summaryrefslogtreecommitdiff
path: root/docs/ref/django-admin.txt
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2020-05-23 19:32:22 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-08-03 09:57:04 +0200
commitae89daf46f83a7b39d599d289624c3377bfa4ab1 (patch)
treed13424f391dc541289db612d896542856bc4080f /docs/ref/django-admin.txt
parent7e38a8d66f9a4fbbf373de30f1cc6be906502559 (diff)
Fixed #31621 -- Added support for '--parallel auto' to test management command.
Diffstat (limited to 'docs/ref/django-admin.txt')
-rw-r--r--docs/ref/django-admin.txt14
1 files changed, 10 insertions, 4 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 4af510731f..0a346b5af7 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -1467,10 +1467,12 @@ Enables :ref:`SQL logging <django-db-logger>` for failing tests. If
Runs tests in separate parallel processes. Since modern processors have
multiple cores, this allows running tests significantly faster.
-By default ``--parallel`` runs one process per core according to
-:func:`multiprocessing.cpu_count()`. You can adjust the number of processes
-either by providing it as the option's value, e.g. ``--parallel=4``, or by
-setting the :envvar:`DJANGO_TEST_PROCESSES` environment variable.
+Using ``--parallel`` without a value, or with the value ``auto``, runs one test
+process per core according to :func:`multiprocessing.cpu_count()`. You can
+override this by passing the desired number of processes, e.g.
+``--parallel 4``. You can also enable ``--parallel`` without passing the flag
+by setting the :envvar:`DJANGO_TEST_PROCESSES` environment variable to the
+desired number of processes.
Django distributes test cases — :class:`unittest.TestCase` subclasses — to
subprocesses. If there are fewer test cases than configured processes, Django
@@ -1511,6 +1513,10 @@ don't.
in order to exchange them between processes. See
:ref:`python:pickle-picklable` for details.
+.. versionchanged:: 4.0
+
+ Support for the value ``auto`` was added.
+
.. option:: --tag TAGS
Runs only tests :ref:`marked with the specified tags <topics-tagging-tests>`.