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 doesnt produce sources element #94

Closed
nedbat opened this issue Oct 24, 2010 · 2 comments
Closed

coverage xml doesnt produce sources element #94

nedbat opened this issue Oct 24, 2010 · 2 comments
Labels
bug Something isn't working xml

Comments

@nedbat
Copy link
Owner

nedbat commented Oct 24, 2010

Originally reported by barnash NA (Bitbucket: barnash, GitHub: barnash)


The xml which is produced by the //coverage xml// command
doesn't produce the sources element.

This disturbs me when I run //coverage xml// in Hudson and the coverage.xml file is not located in the workspace directory, causing the filenames to appear in a relative location - not to the workspace directory.

To solve the issue I needed to produce the coverage report from the workspace directory.

Checking out the Cobertura project and running the example, I saw that there is a special element called: "sources" that has the directory of the source files.

I think that //coverage xml// should get b basedir or something and produce the sources element accordingly, just like Cobertura does.


@nedbat
Copy link
Owner Author

nedbat commented Nov 9, 2012

Issue #181 was marked as a duplicate of this issue, and has some other useful information.

@nedbat
Copy link
Owner Author

nedbat commented May 3, 2014

@nedbat nedbat closed this as completed May 3, 2014
@nedbat nedbat added major bug Something isn't working xml labels Jun 23, 2018
agronholm added a commit to agronholm/coveragepy that referenced this issue Aug 16, 2020
If an earlier connection attempt succeeds, it should signal that the other attempts should be cancelled. This patch makes the first successful attempt cancel the entire scope immediately to achieve that effect.
agronholm added a commit to agronholm/coveragepy that referenced this issue Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working xml
Projects
None yet
Development

No branches or pull requests

1 participant