#23742: Option to run Django tests in reverse
-----------------------------------+------------------------------------
     Reporter:  wrwrwr             |                    Owner:  nobody
         Type:  New feature        |                   Status:  new
    Component:  Testing framework  |                  Version:  master
     Severity:  Normal             |               Resolution:
     Keywords:                     |             Triage Stage:  Accepted
    Has patch:  1                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------

Comment (by wrwrwr):

 Update: rebased [https://github.com/django/django/pull/3543 the pull],
 split some line breaking fixes into another commit, moved the new test to
 a better place and made the option reverse test cases within test classes
 (as defined in
 [https://docs.djangoproject.com/en/dev/topics/testing/overview/#order-in-
 which-tests-are-executed testing docs]), but leave the classes in the
 working order.

 As
 
[https://github.com/wrwrwr/django/commit/00a5eebf2e798a4cc53b18e77aacefcef2efe482#commitcomment-8682804
 noticed] by Preston, there is actually another level of reversing to
 consider. First, reversing labels should always work. Secondly, Django
 sorts tests into `django.TestCase`, `django.SimpleTestCase` and
 `unittest.TestCase`, these groups shouldn't be probably reversed as the
 order is guaranteed in documentation. Thirdly, cases within groups should
 be independent. And lastly, test methods would better be independent too
 (though there can be some reasonable exceptions).

--
Ticket URL: <https://code.djangoproject.com/ticket/23742#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.5a797b40789205c4154fd543ebea1cb7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to