mirror of
https://github.com/django/django.git
synced 2025-08-30 23:37:50 +00:00
Fixed #23742 -- Added an option to reverse tests order.
This is useful for debugging side effects affecting tests that are usually executed before a given test. Full suite and pair tests sort cases more or less deterministically, thus some test cross-dependencies are easier to reveal by reversing the order. Thanks Preston Timmons for the review.
This commit is contained in:
parent
ca801b8c8f
commit
e22c64dfc0
9 changed files with 142 additions and 16 deletions
|
@ -307,3 +307,15 @@ the first one:
|
|||
.. code-block:: bash
|
||||
|
||||
$ ./runtests.py --pair basic.tests.ModelTest.test_eq queries transactions
|
||||
|
||||
You can also try running any set of tests in reverse using the ``--reverse``
|
||||
option in order to verify that executing tests in a different order does not
|
||||
cause any trouble:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ ./runtests.py basic --reverse
|
||||
|
||||
.. versionadded:: 1.8
|
||||
|
||||
The ``--reverse`` option was added.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue