Hi,

have you tried http://nedbatchelder.com/code/coverage/subprocess.html ? It
works for me.

Also pytest-cov plugin advertises it supports measuring subprocesses.

And testdir.inline_run() exists, in case you didn't spot it. That doesn't
use popen so coverage is recorded just fine. The downside of inline_run for
me was that I coudln't get the stdout of the execution.

Tibor

On Fri, Apr 17, 2015 at 8:39 PM Eduardo Schettino <[email protected]>
wrote:

> Hi,
>
> I am using the pytester plugin to test my own plugin.
>
> It works ok but I can not get code coverage because testdir.runpytest uses
> os.popen().
> Have anyone managed to work around that? Can you point me to a
> project/plugin that handles that?
>
> cheers,
>   Eduardo
> _______________________________________________
> pytest-dev mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/pytest-dev
>
_______________________________________________
pytest-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-dev

Reply via email to