coverage.xml produces package names with an extra 'src.' prefix

Issue #465 resolved
Marius Gedminas
created an issue

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">

Comments (5)

  1. Log in to comment