问题描述
我是TFS的新手,想将OpenCover与TFS集成.如果有任何帮助,请帮忙!
由于答案未指定TFS的版本,因此以下为2015/2017年的答案.
可以使用Powershell构建步骤从TFS运行OpenCover.您需要将 OpenCover NuGet程序包的内容放到TFS上,然后在其中运行OpenCover.console.exe
.
由于TFS不支持OpenCover生成的格式,因此您需要采取另一步骤并将结果转换为Cobertura格式.可以使用 OpenCoverToCoberturaConverter NuGet程序包.
我已经在我的博客中更详细地描述了整个过程:
http://codewithstyle.info/setting-在vsts上使用opencover/的up-coverage-reports报告 I am new to TFS and want to integrate OpenCover with TFS. If any has done this please help! Since the answer doesn't specify the version of TFS, here is an answer for 2015/2017. OpenCover can be run from TFS using the Powershell build step. You need to get the contents of the OpenCover NuGet package onto TFS and run Since TFS doesn't support the format produced by OpenCover, you need to take one additional step and convert the results to Cobertura format. It's possible using the OpenCoverToCoberturaConverter NuGet package. I've described the whole process in much more detail on my blog: http://codewithstyle.info/setting-up-coverage-reports-on-vsts-with-opencover/ 这篇关于将OpenCover与TFS集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!OpenCover.console.exe
from there.