.NET核心的代码覆盖工具 [英] Code coverage tool for .NET core
本文介绍了.NET核心的代码覆盖工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我需要知道哪个工具可用于测量.Net核心中的代码覆盖率。我为代码覆盖工具和示例而奋斗了几天,但找不到更好的代码。请帮忙。
提前致谢
我尝试过:
NCover
dotCover
openCover
MS代码覆盖率
这些是web中建议的工具,但找不到一个例子。
Hi all,
I need to know which tool can be used for measuring code coverage in .Net core. I am struggling for few days for code coverage tool and example for it, but couldn't find a better one. Please help.
Thanks in advance
What I have tried:
NCover
dotCover
openCover
MS code coverage
These are the tools suggested in web, but couldn't find an example for this.
推荐答案
openCover:通过OpenCover和ReportGenerator进行代码覆盖 [ ^ ]
dotCover: [< a href =https://blog.jetbrains.com/dotnet/2011/08/04/dotcover-111-and-dottrace-performance-451-release/\"target =_ blanktitle =New Window> dotcover -111-and-dottrace-performance-451 ]
NCover:支持|如何查看Visual Studio插件数据? [ ^ ]
在 openCover 的GitHub页面上,您可以看到它是使用.NET Core编写的,并测试它自己的代码:
openCover: Code Coverage via OpenCover and ReportGenerator[^]
dotCover: [dotcover-111-and-dottrace-performance-451]
NCover: Support | How Do I View the Visual Studio Plug-in Data?[^]
On the GitHub page of openCover you can see that it is written using .NET Core, and tests it's own code:
引用:
Visual Studio VS2017(社区版)或更高版本的C#,C ++ ,. Net Core
Visual Studio VS2017 (Community Edition) or later with C#, C++, .Net Core
GitHub - sawilde / opencover [ ^ ]
这篇关于.NET核心的代码覆盖工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文