无法获得netcoreapp1.1 VS2017RC的代码覆盖率结果 [英] Not Able to get Code coverage result of netcoreapp1.1 VS2017RC

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

问题描述



我为netcoreapp1.1 API创建了.net核心单元测试项目(使用VS 2017 RC Enterprise)。单元测试用例
成功执行但无法获得代码覆盖率结果。由于我是企业版,因此​​我使用Test->分析代码覆盖率执行测试用例但是测试 - > Windows - >代码覆盖率结果未显示代码覆盖率。我也尝试了不同的
选项Open cover,NCover,DotCover。没有任何工作。
这种情况仅适用于目标为
framewok  .netcore。



请建议我如何获得.netcore单元测试项目的代码覆盖率结果。

解决方案

嗨Rakhi,


<我遇到了与你相同的问题,我已将此问题提交给Microsoft Connec t反馈:


https://developercommunity.visualstudio.com/content/problem/21341/not-able-to-get-code-coverage-result-of-netcoreapp.html


Microsoft工程师将认真评估它们。谢谢你的理解。您可以将其标记为答案,让更多获得此问题的人投票给此报告。


祝你好运,


Fletch


Hi,

I've created .net core unit test project for netcoreapp1.1 API(using VS 2017 RC Enterprise) .Unit test cases are executed successfully but not able to get code coverage result. As I've Enterprise edition so I executed test cases using Test->Analyze code coverage but Test->Windows ->Code coverage result is not showing code coverage. I've also tried different options Open cover,NCover,DotCover .Nothing is working.This is happening only for application having target framewok  .netcore.

Please suggest how can I get code coverage result of .netcore unit test project.

解决方案

Hi Rakhi,

I got the same issue as yours in my side, I’ve already submitted this to Microsoft Connect feedback:

https://developercommunity.visualstudio.com/content/problem/21341/not-able-to-get-code-coverage-result-of-netcoreapp.html

Microsoft engineers will evaluate them seriously. Thanks for your understanding. You could mark it as answer and let more people who get this issue to vote this report.

Best regards,

Fletch


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

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