Coverage.py 3.4, the latest release of my code coverage tool for Python, is now available. If you haven't been trying the betas, then new in this release are better ways to direct's coverage.py's attention on your source code, a number of fixes to reporting, especially the XML report, and now completely unexecuted files can be reported as 0% covered.

Enjoy!

tagged: , » 2 reactions

Comments

[gravatar]
pankaj 4:57 AM on 25 Oct 2010

Hi Ned,
You may remember me requesting to add cython coverage. After some effort i've been able to make coverage.py report cython functions coverage. Its a small patch, located at https://sites.google.com/site/pankaj86/files/pyx_patch.diff , with some test files at https://sites.google.com/site/pankaj86/files/pyx_test.tar.gz . If you feel its reasonable, i'd be glad if some such feature goes into coverage.py.
Currently it reports only function coverage (no line coverage), using profiling hooks.
regards,
pankaj

[gravatar]
pankaj 7:42 AM on 25 Oct 2010

i've fixed canonical_filename replacement for pyx files in case of absolute path in v2 of the file on the google site. waiting for ur comments on its feasibility :)

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>.