Coverage.py v3.5 for realz is now available. 3.5 adds two long-requested features: convenient navigation in the HTML report to find flagged sections of code, and better control over partial branch warnings.

More details are in the beta blog post from a few weeks ago. Not much has changed since then, I only heard from one user of the beta, but that user was Guido. As a result, the HTML navigation works properly in more browsers, and behaves better when the current chunk is completely off the screen. Enjoy!

tagged: , » 6 reactions

Comments

[gravatar]
zsiciarz 8:52 AM on 29 Jun 2011

The PyPI link still leads to 3.5b1 release. Anyway, yay! :)

[gravatar]
Ned Batchelder 9:04 AM on 29 Jun 2011

Oops, it's always something. Thanks, fixed!

[gravatar]
Domen Ko┼żar 9:45 AM on 29 Jun 2011

Any plans to support conditional coverage?
Like instrumental: http://lautaportti.wordpress.com/2011/05/07/test-coverage-analysis/

[gravatar]
Ned Batchelder 10:08 AM on 29 Jun 2011

@Domen, no plans yet for condition coverage. It would require a big change to how coverage.py measures code, either by using an ast approach like instrumental uses, or a bytecode hack as in my Wicked hack: Python bytecode tracing.

[gravatar]
Ross 3:09 PM on 29 Jun 2011

Great work - as usual, cheers Ned!

[gravatar]
Christian Heimes 4:19 AM on 30 Jun 2011

Thanks for your hard work and the new release, Ned!

I had tested coverage 3.5b1 for a while and found no new bugs. The issue with branch coverage of 'with' statements in Python 2.7 still persists, though. It's not a deal breaker for me, just a minor inconvenience.

Add a comment:

name
email
Ignore this:
not displayed and no spam.
Leave this empty:
www
not searched.
 
Name and either email or www are required.
Don't put anything here:
Leave this empty:
URLs auto-link and some tags are allowed: <a><b><i><p><br><pre>.