[TIP] coverage and external process

Ned Batchelder ned at nedbatchelder.com
Thu Aug 16 06:26:02 PDT 2012


On 8/16/2012 5:47 AM, andrea crotti wrote:
> Suppose I use multiprocessing in my tests, and nose with the --with-cov
> plugin for coverage support, is there a way to make coverage detect the
> lines that have been run by the subprocess?
>
> I would guess is not really possible but just to make sure..
There are a few ways to do it: 
http://nedbatchelder.com/code/coverage/subprocess.html

I don't know how the --with-cov plugin affects things, I run coverage 
directly.

--Ned.

> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python
>




More information about the testing-in-python mailing list