{"id":21617,"library":"nosexcover","title":"nosexcover","description":"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.","status":"active","version":"1.0.11","language":"python","source_language":"en","source_url":"http://github.com/cmheisel/nose-xcover/","tags":["nose","coverage","cobertura","xml","plugin"],"install":[{"cmd":"pip install nosexcover","lang":"bash","label":"Install with pip"}],"dependencies":[{"reason":"Required as the test runner","package":"nose","optional":false},{"reason":"Required for coverage measurement","package":"coverage","optional":false}],"imports":[{"note":"The plugin is not part of nose itself.","wrong":"from nose.plugins.cover import Nosexcover","symbol":"Nosexcover","correct":"from nosexcover import Nosexcover"}],"quickstart":{"code":"pip install nosexcover\nnosetests --with-xcoverage --with-coverage --cover-package=mypackage","lang":"bash","description":"After installing, run nosetests with --with-xcoverage to generate cobertura-style XML."},"warnings":[{"fix":"Use nosetests as the test runner.","message":"nosexcover requires nose to be installed. It does not work with pytest or other test runners.","severity":"gotcha","affected_versions":"all"},{"fix":"Include --with-coverage in your nosetests command.","message":"The --with-xcoverage flag must be used in combination with --with-coverage (or the default coverage plugin) to actually record coverage data.","severity":"gotcha","affected_versions":"all"},{"fix":"Avoid --cover-erase when using --with-xcoverage.","message":"If you use both --with-xcoverage and --cover-erase, the coverage.xml report may be empty because coverage data is erased after each run.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'pip install nose' before using nosexcover.","cause":"The plugin depends on nose, which is not automatically installed as a dependency.","error":"nosexcover requires nose to be installed."},{"fix":"Use 'from nosexcover import Nosexcover' instead.","cause":"Incorrect import path. The class is in the nosexcover package, not in nose.","error":"ImportError: cannot import name 'Nosexcover' from 'nose.plugins.cover'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}