Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Extends nose.plugins.cover to add Cobertura-style XML reports

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nosexcover, version 1.0.11
Filename, size File type Python version Upload date Hashes
Filename, size nosexcover-1.0.11-py2.py3-none-any.whl (5.0 kB) File type Wheel Python version 2.7 Upload date Hashes View hashes
Filename, size nosexcover-1.0.11.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page