diff options
| author | wrwrwr <git@wr.waw.pl> | 2014-11-22 17:59:05 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-11-24 19:24:11 -0500 |
| commit | e22c64dfc0230134c0e9d9ae1d9a5c1589fc8b6e (patch) | |
| tree | 392a0fda9c438eeb3d2c48c3130c149d3db63d3f /docs/ref | |
| parent | ca801b8c8f7022cd9334a89ac9ae03f586650234 (diff) | |
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.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/django-admin.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 2c42c01096..ca0d7101ef 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -1411,6 +1411,15 @@ test suite. If the test database does not exist, it will be created on the first run and then preserved for each subsequent run. Any unapplied migrations will also be applied to the test database before running the test suite. +.. django-admin-option:: --reverse + +.. versionadded:: 1.8 + +The ``--reverse`` option can be used to sort test cases in the opposite order. +This may help in debugging tests that aren't properly isolated and have side +effects. :ref:`Grouping by test class <order-of-tests>` is preserved when using +this option. + testserver <fixture fixture ...> -------------------------------- |
