#33213: Document coverage setup for parallel tests
-----------------------------------------+------------------------
               Reporter:  Mr. Glass      |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Uncategorized  |        Version:
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 Ticket #31431 requested django implement support coverage for parallel
 tests. It was marked as wontfix, citing #4501 where a decision was made to
 document how to run coverage rather than integrate it.

 Unfortunately, the
 [https://docs.djangoproject.com/en/dev/topics/testing/advanced/ coverage
 documentation] does not mention parallel tests at all.

 Since parallel tests use subprocesses,
 [https://coverage.readthedocs.io/en/6.0.2/subprocess.html special setup]
 is needed for coverage to be accurate. I have so far been unable to figure
 this out, and the best information I've found is in this
 [https://stackoverflow.com/a/42862546/502816 StackOverflow post].

 The coverage section needs documentation covering parallel tests, and the
 parallel tests section should probably mention that coverage needs special
 setup and link to it.

 I would be happy to update the documentation if someone can provide me
 with the working answer.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33213>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/054.345669e7b8eaf173dc8e2517325171e6%40djangoproject.com.

Reply via email to