-
Notifications
You must be signed in to change notification settings - Fork 389
Difference in cobertura report between coverlet 2.4.0 and 2.5.0 #295
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
Comments
This happens because I switched to using absolute paths. #356 re-includes the |
We're using 2.6.0 and it appears there are still issues with this. Jenkins can't render the source and shows the It appears the cobertura Jenkins plugin strips the leading slash character and expects a relative path: https://github.com/jenkinsci/cobertura-plugin/blob/master/src/main/java/hudson/plugins/cobertura/CoberturaCoverageParser.java#L172-L176 A hacky fix (short of refactoring the SourceLink related changes) could be adding the slash character to the |
We're seeing this as well. I reverted back to |
@tonerdo I noticed this same issue too with 2.6.0
This is our jenkin pipeline step that is failing right now with 2.6.0:
Same reporter works fine with 2.3.1 and we have been using it since last year. |
Issue description
When I run tests using command:
in my sample project https://github.com/rwasala/CodeCoverage I get different output in reports.
For version 2.4.0 it looks like:
For version 2.5.0 it looks like:
Basically the difference is that in version 2.5.0 node source is empty which causes problems with cobertura Jenkins plugin - it is not showing the source code with marked what is covered and what is not.
Is it possible to make report from
coverlet.msbuild
in version 2.5.0 the same like in 2.4.0?The text was updated successfully, but these errors were encountered: