Skip to content
Browse files

Fixed #20590: Documented new test case ordering

  • Loading branch information...
1 parent cab333c commit e26b589b8cd2c46c0e6af360abaacdb2fb0af27d @andrewgodwin andrewgodwin committed
Showing with 6 additions and 4 deletions.
  1. +6 −4 docs/topics/testing/overview.txt
View
10 docs/topics/testing/overview.txt
@@ -221,10 +221,12 @@ Order in which tests are executed
In order to guarantee that all ``TestCase`` code starts with a clean database,
the Django test runner reorders tests in the following way:
-* First, all unittests (including :class:`unittest.TestCase`,
- :class:`~django.test.SimpleTestCase`, :class:`~django.test.TestCase` and
- :class:`~django.test.TransactionTestCase`) are run with no particular ordering
- guaranteed nor enforced among them.
+* All :class:`~django.test.TestCase` subclasses are run first.
+
+* Then, all other unittests (including :class:`unittest.TestCase`,
+ :class:`~django.test.SimpleTestCase` and
+ :class:`~django.test.TransactionTestCase`) are run with no particular
+ ordering guaranteed nor enforced among them.
* Then any other tests (e.g. doctests) that may alter the database without
restoring it to its original state are run.

0 comments on commit e26b589

Please sign in to comment.
Something went wrong with that request. Please try again.