#2978 closed defect (duplicate)

Coverage reports from the test suite exclude coverage provided by child processes

Reported by: exarkun Owned by:
Priority: normal Milestone: undecided
Component: unknown Version: 1.12.1
Keywords: Cc:
Launchpad Bug:


The test suite runs quite a few child processes. The way coverage is collected, any code that is run in these child processes does not count towards coverage in the report that is ultimately generated.

This makes some covered code appear uncovered. This makes the coverage reporting performed by CI less useful since reports of uncovered code must be manually investigated to determine if they are really uncovered or if they are covered in a child process.

Change History (2)

comment:1 Changed at 2019-02-27T15:19:45Z by exarkun

https://coverage.readthedocs.io/en/latest/subprocess.html details the support built in to coverage.py for this kind of thing.

comment:2 Changed at 2020-08-26T18:38:15Z by exarkun

  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.