diff options
| author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2021-03-25 21:08:10 -0700 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-03-26 12:18:27 +0100 |
| commit | dcb06c2c6889d04506b48f025622357e2926c709 (patch) | |
| tree | 13619c40590211e9d32efae50e3dcae87b18e303 /docs | |
| parent | cecdec91cf08fa8ad70a22d2a03bec3e86692350 (diff) | |
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.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/testing/overview.txt | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
