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
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 o
Yes i had the same issue and solved it by avoiding pytest-cov.
See pytest-splinter and its tox.ini coveralls testenv.
On Apr 17, 2015 8:39 PM, "Eduardo Schettino" 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
Thanks, I solved my problem using testdir.inline_run().
The lack of output doesnt matter because I can use TestReport objects...
cheers
On Sat, Apr 18, 2015 at 3:38 AM, Anatoly Bubenkov
wrote:
> Yes i had the same issue and solved it by avoiding pytest-cov.
> See pytest-splinter and its tox.in