Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nedbat opened this issue Jan 12, 2016 · 4 comments
Closed

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

nedbat opened this issue Jan 12, 2016 · 4 comments
Labels
bug Something isn't working

Comments

@nedbat
Copy link
Owner

nedbat commented Jan 12, 2016

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


@nedbat
Copy link
Owner Author

nedbat commented Jan 23, 2016

@nedbat
Copy link
Owner Author

nedbat commented Jan 24, 2016

Original comment by Marius Gedminas (Bitbucket: mgedmin, GitHub: mgedmin)


Are you sure you linked to the right commit?

@nedbat
Copy link
Owner Author

nedbat commented Jan 24, 2016

Sorry, I linked to the last of the four or five commits that fixed it.... This was the main work: 77bb944d9b099c42e2d4acbee51774510c6f30a8 (bb)

@nedbat
Copy link
Owner Author

nedbat commented Jan 24, 2016

Original comment by Marius Gedminas (Bitbucket: mgedmin, GitHub: mgedmin)


Thank you!

@nedbat nedbat closed this as completed Jan 24, 2016
@nedbat nedbat added minor bug Something isn't working labels Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant