1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #24522 -- Added a --shuffle option to DiscoverRunner.

This commit is contained in:
Chris Jerdonek
2021-04-24 16:46:16 -07:00
committed by Mariusz Felisiak
parent 77b88fe621
commit 90ba716bf0
10 changed files with 472 additions and 21 deletions

View File

@@ -470,12 +470,13 @@ the first one:
$ ./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:
You can also try running any set of tests in a random or reverse order using
the ``--shuffle`` and ``--reverse`` options. This can help verify that
executing tests in a different order does not cause any trouble:
.. console::
$ ./runtests.py basic --shuffle
$ ./runtests.py basic --reverse
Seeing the SQL queries run during a test