#33213: Document coverage setup for parallel tests
-------------------------------+------------------------------------
     Reporter:  Mr. Glass      |                    Owner:  nobody
         Type:  New feature    |                   Status:  new
    Component:  Documentation  |                  Version:
     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 Adam Johnson):

 Coverage.py documents [https://coverage.readthedocs.io/en/latest/cmd.html
 #cmd-run for 'run']:

 > Coverage.py can measure multi-threaded programs by default. If you are
 using more exotic concurrency, with the multiprocessing, greenlet,
 eventlet, or gevent libraries, then coverage.py will get very confused.
 Use the --concurrency switch to properly measure programs using these
 libraries. Give it a value of multiprocessing, thread, greenlet, eventlet,
 or gevent. Values other than thread require the C extension.

 Plus it has a whole page on the topic:
 https://coverage.readthedocs.io/en/latest/subprocess.html

 I've found `--concurrency=multiprocessing` works fine.

 Not sure Django needs to doc anything considering it's really extensively
 documented there.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33213#comment:3>
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/069.e8ff834436b59691781552f6cf6c85c2%40djangoproject.com.

Reply via email to