mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Enabled parallel testing by default in runtests.py.
This commit is contained in:
parent
39bb66baad
commit
33c7c2a557
8 changed files with 45 additions and 6 deletions
|
@ -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.
|
||||
|
|
|
@ -135,6 +135,10 @@ 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 is enabled by default for Django's own test suite on database
|
||||
backends that support it (this is all the built-in backends except for
|
||||
Oracle).
|
||||
|
||||
Minor features
|
||||
~~~~~~~~~~~~~~
|
||||
|
||||
|
@ -686,7 +690,8 @@ Database backend API
|
|||
and hasn't been called anywhere in Django's code or tests.
|
||||
|
||||
* In order to support test parallelization, you must implement the
|
||||
``DatabaseCreation._clone_test_db()`` method. You may have to adjust
|
||||
``DatabaseCreation._clone_test_db()`` method and set
|
||||
``DatabaseFeatures.can_clone_databases = True``. You may have to adjust
|
||||
``DatabaseCreation.get_test_db_clone_settings()``.
|
||||
|
||||
Default settings that were tuples are now lists
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue