mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Cloned databases for running tests in parallel.
This commit is contained in:
parent
cd9fcd4e80
commit
0586c061f0
8 changed files with 208 additions and 11 deletions
|
@ -1270,6 +1270,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.
|
||||
|
||||
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.
|
||||
|
||||
This option requires the third-party ``tblib`` package to display tracebacks
|
||||
correctly:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue