#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 Mariusz Felisiak):
We could improve
[https://docs.djangoproject.com/en/stable/internals/contributing/writing-
code/unit-tests/#code-coverage docs] by removing ''"Coverage should be run
in a single process to obtain accurate statistics."'' and changing the
current commands to the:
{{{
coverage erase
coverage run --concurrency=multiprocessing ./runtests.py
--settings=test_sqlite
coverage combine && coverage html
}}}
However, this raises a warning for me:
{{{
coverage/inorout.py:530: CoverageWarning: Module django was previously
imported, but not measured (module-not-measured)
self.warn(msg, slug="module-not-measured")
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33213#comment:6>
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.47321d896a17fd026c3ebcfe570d3b59%40djangoproject.com.