#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 Mr. Glass):
Replying to [comment:3 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.
Yeah --concurrency=multiprocessing didn't work for me, nor a bunch of
config file options I tried. I spent way more time than allotted in my
sprint trying to get this, but I could be making a simple mistake. I'll
try to hop on a help channel if I can buy time.
--
Ticket URL: <https://code.djangoproject.com/ticket/33213#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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/069.abd9e547e98b3e2b1c3b30aa40ec363e%40djangoproject.com.