diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-09-06 11:12:08 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-09-10 13:34:05 +0200 |
| commit | 33c7c2a55770fe8ccc297a8ae13e04487b72b3a1 (patch) | |
| tree | f3cd4f169ae8cea6d0b060af3800968e7fd05617 /docs/internals/contributing/writing-code | |
| parent | 39bb66baad1b98e0fa10d668a09154a0f5372b3d (diff) | |
Enabled parallel testing by default in runtests.py.
Diffstat (limited to 'docs/internals/contributing/writing-code')
| -rw-r--r-- | docs/internals/contributing/writing-code/unit-tests.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/docs/internals/contributing/writing-code/unit-tests.txt index 8a097bba8c..55e3a2d5c7 100644 --- a/docs/internals/contributing/writing-code/unit-tests.txt +++ b/docs/internals/contributing/writing-code/unit-tests.txt @@ -284,3 +284,16 @@ combine this with ``--verbosity=2``, all SQL queries will be output:: .. versionadded:: 1.8 The ``--reverse`` and ``--debug-sql`` options were added. + +By default tests are run in parallel with one process per core. You can adjust +this behavior with the ``--parallel`` option:: + + $ ./runtests.py basic --parallel=1 + +You can also use the ``DJANGO_TEST_PROCESSES`` environment variable for this +purpose. + +.. versionadded:: 1.9 + + Support for running tests in parallel and the ``--parallel`` option were + added. |
