Fork of nose.plugins.cover that enables XML output (for use with Hudson, e.g.)
Python
Latest commit 3bae799 Oct 30, 2016 @cmheisel committed on GitHub Merge pull request #30 from adamchainz/universal_wheels
Release as a universal wheel
Permalink
Failed to load latest commit information.
nosexcover
.gitignore
.travis.yml
LICENSE.txt Added license Oct 14, 2011
README.rst Clarify readme with --with-xcoverage Aug 9, 2016
setup.cfg Release as a universal wheel Oct 16, 2016
setup.py Version bump with Python 3 support for realz Mar 25, 2014
tox.ini Add support for tox (http://tox.testrun.org/) Dec 7, 2012

README.rst

nose-xmlcover

A companion to the built-in nose.plugins.cover, this plugin will write out an XML coverage report to a file named coverage.xml.

It will honor all the options you pass to the Nose coverage plugin, especially --cover-package.

Usage

You can not use both --with-xcoverage and --with-coverage. Using --with-xcover implies --with-coverage

If you want to change the name of the output file you can use --xcoverage-file=FILE (--cover-xml-file from coverage won't work)

As of nose-xcover 1.0.6 --with-xcoverage provides all the functionality of the built-in coverage plugin in addition to Cobertura-style output:

#nosetests --with-xcoverage {{ coverage options }}
nosetests --with-xcoverage --cover-package=myapp --cover-tests