[TIP] Fwd: py.test coverage without erasing coverage data on previous runs?
marc.schlaich at gmail.com
Tue Mar 24 09:35:39 PDT 2015
---------- Forwarded message ----------
From: Marc Schlaich <marc.schlaich at gmail.com>
Date: Mon, Mar 23, 2015 at 10:30 PM
Subject: Re: [TIP] py.test coverage without erasing coverage data on
To: Randy Syring <randy at thesyrings.us>
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:
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.
Am 23.03.2015 21:27 schrieb "Randy Syring" <randy at thesyrings.us>:
> > The data file is erased at the beginning of testing to ensure clean
> data for each test run.
> from: https://pypi.python.org/pypi/pytest-cov
> 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
> *Randy Syring*
> Husband | Father | Redeemed Sinner
> *"For what does it profit a man to gain the whole world and forfeit his
> soul?" (Mark 8:36 ESV)*
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python