[TIP] Coverage.py 3.6 beta 2
tseaver at palladion.com
Mon Dec 31 21:25:48 PST 2012
-----BEGIN PGP SIGNED MESSAGE-----
On 12/31/2012 10:12 PM, Gregory P. Smith wrote:
> On Mon, Dec 31, 2012 at 7:37 AM, Tres Seaver <tseaver at palladion.com>
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> On 12/31/2012 09:52 AM, Ned Batchelder wrote:
>>> On 12/31/2012 8:54 AM, Tres Seaver wrote: On 12/31/2012 08:22 AM,
>>> Ned Batchelder wrote:
>>>>>> Oops, posted this two days ago, and forgot to mention it
>>> Thanks, Ned, for the quick turnaround on the fix!
>>> Thanks more generally for coverage: I blame it, along with tox
>>> and nose, for the huge timesuck I encountered this year
>>> implementing Python2-Python3 "straddling" on the packages I help
>>> maintain (I won't even consider a port until I get statement
>>> coverage up to 100%).
>>>> You're welcome, I think? :)
>> Definitely. I had just been reviewing the several hundred hours I
>> put into porting this year: I would never have even contemplated
>> it without the tools you, Holger, and Titus have provided.
> Cool. A writeup, lightening talk or general lessons learned from your
> 2and3 porting efforts would be great to read. :)
> (read: I'm in the process of doing this for a bunch of code and would
> love to pre-learn things I haven't run into yet)
I have a blog post planned, but not yet started, describing what I found
worked and didn't. The tl;dr verison is something like:
- - Convert doctests to Sphinx docs.
- - Get to 100% statement coverage with good assertions.
- - Add fully-covered pure-Python reference implementations for any
C extensions, and ensure that they pass *all* the same tests.
- - Follow the "straddle" pattern outlined by Lennart Regebro:
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/
-----END PGP SIGNATURE-----
More information about the testing-in-python