This is because using coverage.py to trace code launched by a subprocess
(and not through multiprocessing) requires
[https://coverage.readthedocs.io/en/stable/subprocess.html additional
configuration], e.g. adding code to sitecustomize.py or creating a .pth
file.
Perhaps we could look into creating a tempdir with a .pth file to run the
needed coverage.py configuration while running tests.
--
Ticket URL: <https://code.djangoproject.com/ticket/34810>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
Comment:
Tentatively accepted (not sure if this is doable).
--
Ticket URL: <https://code.djangoproject.com/ticket/34810#comment:1>
* owner: nobody => Jacob Walls
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/34810#comment:2>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/17226 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34810#comment:3>
* needs_better_patch: 0 => 1
Comment:
Setting as patch needs improvement since apparently the coverage config
should set `parallel` to True.
--
Ticket URL: <https://code.djangoproject.com/ticket/34810#comment:4>
* needs_better_patch: 1 => 0
Comment:
Thanks for the review. Left a comment with what I found about the
`concurrency` option taking the place of the `parallel` option.
--
Ticket URL: <https://code.djangoproject.com/ticket/34810#comment:5>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/34810#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"1ab2cf7994a6f1116a96fbaedd7cadbd4b754179" 1ab2cf79]:
{{{
#!CommitTicketReference repository=""
revision="1ab2cf7994a6f1116a96fbaedd7cadbd4b754179"
Fixed #34810 -- Measured test coverage on django-admin commands.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34810#comment:7>