Enable coverage measurement of code run by multiprocessing.Process
· Issue #117 · nedbat/coveragepy (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
Originally reported by Ram Rachum (Bitbucket: coolrr, GitHub: coolrr)
If you have a multiprocessing.Process
that runs on some lines of code, Coverage currently doesn't detect that and doesn't mark these lines as executed.
A sample module that uses multiprocessing.Process
is attached; when run with coverage
, all the 1 + 1
lines are marked as not executed, when in fact they have been executed by the auxiliary process.
- Bitbucket: https://bitbucket.org/ned/coveragepy/issue/117
- This issue had attachments: coverage_multiprocessing.py. See the original issue for details.