coverlet-coverage / coverlet

Cross platform code coverage for .NET
MIT License
2.97k stars 386 forks source link

Report format support for JaCoCo #5

Closed OneCyrus closed 4 years ago

OneCyrus commented 6 years ago

it works quite well so far! we are using it already in VSTS/TFS. but one thing which is not so streamlined for using in VSTS/TFS are the supported output formats. Currently VSTS/TFS only supports Cobertura and JaCoCo. Supporting one of this formats would be great.

tonerdo commented 6 years ago

@OneCyrus multiple coverage formats is definitely an improvement. Do you happen to have links where these formats are documented?

OneCyrus commented 6 years ago

it looks like there is no proper Cobertura specification.

but may be this links help: https://leonard.io/blog/2011/06/cobertura-sample-xml-output/ https://github.com/danielpalme/OpenCoverToCoberturaConverter

tonerdo commented 6 years ago

Alright, will take a look. Thanks!

tonerdo commented 6 years ago

Thanks, how about JaCoCo?

OneCyrus commented 6 years ago

Microsoft has links to the schema definition files for both here: https://docs.microsoft.com/en-us/vsts/build-release/tasks/test/publish-code-coverage-results?view=vsts

http://cobertura.sourceforge.net/xml/coverage-04.dtd http://www.eclemma.org/jacoco/trunk/coverage/report.dtd

timker commented 6 years ago

FYI in the interim for linux builds I added

 dotnet Tools/OpenCoverToCoberturaConverter/OpenCoverToCoberturaConverter.dll  "-input:opencover.xml" "-output:Cobertura.xml"

from https://github.com/danielpalme/OpenCoverToCoberturaConverter

this worked for VSTS

tonerdo commented 6 years ago

Cobertura support available in latest NuGet bits https://www.nuget.org/packages/coverlet.msbuild/1.1.0

abakumov-v commented 6 years ago

FIY - Cobertura also is default template in Jenkins. So cool that it is now support!

ahaleiii commented 6 years ago

I am using VSTS with Cobertura format and getting results, but I can only report on lines right now. Any plans to update Cobertura to report blocks? Thanks for all your work on this!

MarcoRossignoli commented 4 years ago

Cobertura was added.