coverage xml doesnt produce sources element

barnash avatarbarnash created an issue

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.

Comments (3)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.