From dcb06c2c6889d04506b48f025622357e2926c709 Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Thu, 25 Mar 2021 21:08:10 -0700 Subject: Fixed #32591 -- Made DiscoverRunner order _FailedTest objects first. Failures detected when loading tests are ordered before all of the above for quicker feedback. This includes things like test modules that couldn't be found or that couldn't be loaded due to syntax errors. --- docs/topics/testing/overview.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs') diff --git a/docs/topics/testing/overview.txt b/docs/topics/testing/overview.txt index 3b07ed42c6..7461fdaaf0 100644 --- a/docs/topics/testing/overview.txt +++ b/docs/topics/testing/overview.txt @@ -229,10 +229,21 @@ the Django test runner reorders tests in the following way: database by a given :class:`~django.test.TransactionTestCase` test, they must be updated to be able to run independently. +.. note:: + + Failures detected when loading tests are ordered before all of the above + for quicker feedback. This includes things like test modules that couldn't + be found or that couldn't be loaded due to syntax errors. + You may reverse the execution order inside groups using the :option:`test --reverse` option. This can help with ensuring your tests are independent from each other. +.. versionchanged:: 4.0 + + In older versions, failures detected when loading tests were not ordered + first. + .. _test-case-serialized-rollback: Rollback emulation -- cgit v1.3