diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-09-10 16:12:36 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-09-10 16:12:36 +0200 |
| commit | b1a29541e5d37c03becde6c84e793766ef23395c (patch) | |
| tree | d3d04058e44a7080d3fcaa637bb3afa31ba4c3e4 /docs/internals/contributing/writing-code | |
| parent | acb833081dd3abca3bc62753103690f23fb3f0ec (diff) | |
| parent | a32206b3650c5ce18c0a06eb0eb40abc8becfa58 (diff) | |
Merge pull request #4761 from aaugustin/parallelize-tests-attempt-1
Fixed #20461 -- Allowed running tests in parallel.
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. |
