coverage.xml produces package names with an extra 'src.' prefix · Issue #465 · nedbat/coveragepy (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
Originally reported by Marius Gedminas (Bitbucket: mgedmin, GitHub: mgedmin)
I've an app that uses one of the two standard source layouts: all source code lives inside the src
subdirectory. The coverage.xml produced by coverage.py incorrectly thinks the package name is src.mypackage
rather than just mypackage
.
Steps to reproduce
git clone https://github.com/mgedmin/restview
cd restview
tox -e coverage
coverage xml
grep package.*name coverage.xml
Expected result
<package branch-rate="0" complexity="0" line-rate="1" name="restview">
Actual result
<package branch-rate="0" complexity="0" line-rate="1" name="src.restview">