#26942: support subtests when running tests in parallel
-----------------------------------+-------------------------------------
     Reporter:  cjerdonek          |                    Owner:  cjerdonek
         Type:  New feature        |                   Status:  assigned
    Component:  Testing framework  |                  Version:  1.9
     Severity:  Normal             |               Resolution:
     Keywords:                     |             Triage Stage:  Accepted
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+-------------------------------------

Comment (by cjerdonek):

 I got a proof of concept for this working in a branch on GitHub
 [https://github.com/cjerdonek/django/commits/issue-26942-parallel-testing-
 subtests here].

 The code change looks like the following:

 {{{#!python
     def addSubTest(self, test, subtest, err):
         # Following unittest.TestResult.addSubTest()'s implementation in
         # Python 3.5, we don't do anything with subtests on success
         # See here for the Django ticket to support subtests with the
         # --parallel test option:
         # https://code.djangoproject.com/ticket/26942
         if err is not None:
             self.check_picklable(test, err)
             self.events.append(('addSubTest', self.test_index, subtest,
 err))
             self.stop_if_failfast()
 }}}

 I can work on a regression test, etc, over time.

--
Ticket URL: <https://code.djangoproject.com/ticket/26942#comment:4>
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/067.34ac2ca4a115f69ad91b68cdf7502df5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to