Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display OpenCover results in TFS 2015 build Summary

I have generated my xml coverage file as part of CI build on the TFS server using vNext 2015 build definition. How would one display the results in the TFS 2015 summary ? Either using the xml report or the html generated using the ReportGenerator.

like image 717
Orn Kristjansson Avatar asked Nov 09 '22 01:11

Orn Kristjansson


1 Answers

You need to convert the results produced by OpenCover to a format which can be parsed by TFS.

One way to do this would be to use the OpenCoverToCoberturaConverter NuGet package.

Once you have that, you can use the Publish Code Coverage Results build step.

I have described the whole process on my blog.

like image 70
milosz Avatar answered Dec 28 '22 09:12

milosz