<div dir="ltr">FYI.<br><br><div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Marc Schlaich</b> <span dir="ltr"><<a href="mailto:marc.schlaich@gmail.com">marc.schlaich@gmail.com</a>></span><br>Date: Mon, Mar 23, 2015 at 10:30 PM<br>Subject: Re: [TIP] py.test coverage without erasing coverage data on previous runs?<br>To: Randy Syring <<a href="mailto:randy@thesyrings.us">randy@thesyrings.us</a>><br><br><br><p dir="ltr">Hey Randy, </p>
<p dir="ltr">in the upcoming pytest-cov 2.0 you can easily create different data files for each tox environment and automatically combine them at the end of the tox run. See here for an example project: <br>
<a href="https://github.com/schlamar/pytest-cov/tree/2.0/example-tox-project" target="_blank">https://github.com/schlamar/pytest-cov/tree/2.0/example-tox-project</a></p>
<p dir="ltr">Unfortunately, there is no release date yet as I'm pretty busy right now. However, the 2.0 branch should be quite stable, so you could give it a try. </p>
<p dir="ltr">Marc</p>
<div class="gmail_quote">Am 23.03.2015 21:27 schrieb "Randy Syring" <<a href="mailto:randy@thesyrings.us" target="_blank">randy@thesyrings.us</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div bgcolor="#FFFFFF" text="#000000">
> The data file is erased at the beginning of testing to ensure
clean data for each test run.<br>
<br>
from: <a href="https://pypi.python.org/pypi/pytest-cov" target="_blank">https://pypi.python.org/pypi/pytest-cov</a><br>
<br>
However, I'd like to accumulate coverage over multiple calls in my
tox.ini so that I can get a coverage number that is reflective of
all python versions I'm testing against. Can I get pytest-cov to
not erase the coverage?<br>
<div><br>
<b>Randy Syring</b><br>
<small>Husband | Father | Redeemed Sinner</small><br>
<br>
<i><small>"For what does it profit a man to gain the whole world<br>
and forfeit his soul?" (Mark 8:36 ESV)</small></i>
<br>
<br>
</div>
</div>
<br></div></div>_______________________________________________<br>
testing-in-python mailing list<br>
<a href="mailto:testing-in-python@lists.idyll.org" target="_blank">testing-in-python@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
<br></blockquote></div>
</div><br></div></div>