#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):
Do you have any thoughts or ideas on a good testing approach for this?
It has a few tricky aspects.
At the least, it seems like the tests should test the code paths of (1) a
successful and (2) a failing subtest in a somewhat end-to-end fashion. The
success case can easily be met simply by including a test containing a
subtest (which would suffice assuming the tests are already being run in
parallel mode).
But for the failing case, we don't want to don't want to interfere with
the test run itself. In my first attempt at programmatically instantiating
and running a ParallelTestSuite within a test case, I got the following
error (because it was running a parallel test within a parallel test):
{{{
File "/.../lib/python3.5/multiprocessing/process.py", line 103, in start
'daemonic processes are not allowed to have children'
AssertionError: daemonic processes are not allowed to have children
}}}
There is also the question of whether and which of these tests should run
even if the tests aren't being run in parallel mode.
--
Ticket URL: <https://code.djangoproject.com/ticket/26942#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/067.d876c4356c8fdd4f7fbc0d1178452c22%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.