1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +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:
wrwrwr
2014-11-22 17:59:05 +01:00
committed by Tim Graham
parent ca801b8c8f
commit e22c64dfc0
9 changed files with 142 additions and 16 deletions

View File

@@ -471,8 +471,9 @@ Tests
* The new :meth:`~django.test.SimpleTestCase.assertJSONNotEqual` assertion
allows you to test that two JSON fragments are not equal.
* Added the ability to preserve the test database by adding the
:djadminopt:`--keepdb` flag.
* Added options to the :djadmin:`test` command to preserve the test database
(:djadminopt:`--keepdb`) and to run the test cases in reverse order
(:djadminopt:`--reverse`).
* Added the :attr:`~django.test.Response.resolver_match` attribute to test
client responses.