This could be implemented by changing
[https://github.com/django/django/blob/f5a22442176878d07e80ae5ba0af1dd8d6910fbd/django/test/runner.py#L813
reorder_tests()] to prepend its list of classes with a bin for
`_FailedTest` objects.
--
Ticket URL: <https://code.djangoproject.com/ticket/32591>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
Comment:
Hey Chris — I'm happy to accept this.
With pytest I find the `-x --lf` combo to be quite effective. (That's not
quite what you're proposing here I think, since `--lf` will select only
the tests that previously failed — but "Carry on if all those passed" is
probably better behaviour...)
I don't know if folks will have ''thoughts'' on the exact behaviour
they're after, but I suspect we'll find out in review 😀
Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/32591#comment:1>
* owner: nobody => Chris Jerdonek
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/32591#comment:2>
* has_patch: 0 => 1
Comment:
PR: https://github.com/django/django/pull/14191
--
Ticket URL: <https://code.djangoproject.com/ticket/32591#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"dcb06c2c6889d04506b48f025622357e2926c709" dcb06c2c]:
{{{
#!CommitTicketReference repository=""
revision="dcb06c2c6889d04506b48f025622357e2926c709"
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.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32591#comment:4>