December 13, 2009
Get XML coverage reports from nose
When hooking up Hudson and Django, I needed a way to get XML coverage reports.
At the time I forked nose itself, but I wasn’t happy with the solution. Folks rightly wouldn’t want to use my fork; I don’t want to commit to keeping up with nose’s development; and duh, they have a plugin architecture.
So I’m happy to announce nose-xcover. Install it and it’ll add the –with-xcoverage option which you can use alongside the built-in plugin like so:
#nosetests --with-coverage {{ coverage options }} --with-xcoverage
nosetests --with-coverage --cover-package=myapp --cover-tests --with-xcoverage
I updated my Django and Hudson guide to use this instead of the fork.
I hope you find it useful!
Filed under: Django,Projects,Python
Next: TV of my life: A side trip down memory lane
Previous: For Christmas, vintage photos
Comments