Registry / testing / nosexcover

nosexcover

JSON →
library1.0.11pypypiunverified

nosexcover is a plugin for Nose that extends the built-in coverage plugin to generate Cobertura-style XML reports (coverage.xml) via the `coverage.py` library. Version 1.0.11 is the latest release. The project is maintained but has very infrequent updates.

pip install nosexcover
INSTALL
IMPORT
SIG · NOSEXCOVER
N
nosexcover
testingpythonv1.0.11
Install
2.3s avg
Import
Disk
19MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.11 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 21MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.3s · import 0.000s · 22MB
19MB installed
● package 19MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Nosexcover
from nosexcover import Nosexcover
from nose.plugins.cover import Nosexcover
The plugin is not part of nose itself.

After installing, run nosetests with --with-xcoverage to generate cobertura-style XML.

pip install nosexcover nosetests --with-xcoverage --with-coverage --cover-package=mypackage
Debug
Known issues
gotchanosexcover requires nose to be installed. It does not work with pytest or other test runners.
fix
Use nosetests as the test runner.
affects: all
gotchaThe --with-xcoverage flag must be used in combination with --with-coverage (or the default coverage plugin) to actually record coverage data.
fix
Include --with-coverage in your nosetests command.
affects: all
gotchaIf you use both --with-xcoverage and --cover-erase, the coverage.xml report may be empty because coverage data is erased after each run.
fix
Avoid --cover-erase when using --with-xcoverage.
affects: all
Upgrade
Version history
1.0.11latest on PyPI · released Oct 30, 2016
Audit
Dependencies
noserequiredRequired as the test runner
coveragerequiredRequired for coverage measurement
Agent activity
4 hits · last 30 days
node
4
Resources
nosexcover — pip install nosexcover · libregistry