Dotnet vstest获得代码覆盖率 [英] Dotnet vstest to get code coverage

查看:78
本文介绍了Dotnet vstest获得代码覆盖率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


以下命令:



dotnet vstest(Get-ChildItem tests |%{Join-Path $ _。FullName -ChildPath(" bin / Debug / netcoreapp2.0 / $($ _.Name).dll") })    / enablecodecoverage 


< p style ="padding-right:0px; font-size:14px; vertical-align:baseline; list-style-type:none; color:#666666; font-family:'Segoe UI',Helvetica,Garuda,Arial, sans-serif">



当在构建代理上手动执行然后无法获得覆盖摘要时,命令进入挂起状态



想要将其与vNext构建定义集成

解决方案

嗨BS_0203,


>>命令进入挂起状态


我只是挂在我身上的命令也是因为我在输入
dotnet vstest 并按 ente r后,我没有安装dotnet核心工具在命令窗口中,我可以看到安装的处理。您可以先尝试查看机器中的dot net vstest
是否存在


 


祝你好运,


Fletcher



With below command :

dotnet vstest (Get-ChildItem tests | % { Join-Path $_.FullName -ChildPath ("bin/Debug/netcoreapp2.0/$($_.Name).dll") })  /enablecodecoverage 

when executed manually on build agent then not able to get coverage summary, command went into the hung state

Want to integrate this with vNext build definition

解决方案

Hi BS_0203,

>>command went into the hung state

I just the command hung in my side too, it was because I did not install the dotnet core tool, I guess, after I typed dotnet vstest and press enter in the command window, then I could see the processing of the installation. You could try it to see if the dot net vstest exists in your machine first.

 

Best regards,

Fletcher


这篇关于Dotnet vstest获得代码覆盖率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆