code覆盖面为C#/。NET [英] Code Coverage for C#/.NET
本文介绍了code覆盖面为C#/。NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不知道什么选项有用于.NET(或C#专)code覆盖面,尤其是在低价位段?
I wonder what options there are for .net (or C# specifically) Code Coverage, especially in the Lower Priced segment?
- NCover
- 似乎非常受欢迎,看起来相当不错
- 支持语句覆盖率和分支覆盖率
- $ 480NCover 3完成
- 在较早的测试版,版本提供免费
- NCover
- Seems to be very popular and looks quite good
- Supports statement coverage and branch coverage
- $480 for "NCover 3 Complete"
- Older Beta-Versions available for free
- 嗯,这是微软,所以我希望它能够正常工作
- 完全集成到Visual Studio中
- 至少$ 5,469
- 在开源
- 支持语句覆盖
- 在开放源代码
- 支持分支语句覆盖
- 在32位和64位的支持
- 在Silverlight的支持
- 背景
- <一个href="http://www.$c$cproject.com/Articles/677691/Getting-$c$c-coverage-from-your-NET-testing-using">Tutorial在$ C $的CProject的主要开发
- OpenSource
- Supports branch and statement coverage
- 32 and 64 bit support
- Silverlight support
- Background
- Tutorial on CodeProject by the primary developer
- 与32位和64位的作品,完整的C#4.0
- 把手小型和超大型code碱基
- 250 $的单用户许可
- $ 100个人许可证。免费用户群,开源项目,学生和教师。
- 支持语句覆盖
- 在Silverlight的支持
- $ 159个人许可证
- $ 289商业席位牌
公测期间*免费,成为商业化,价格未知 未来未知。 - 在Visual Studio中code覆盖率指标
- 在连续(近实时)测试
- 视觉每个测试code覆盖
- 在性能指标,parallell多核心测试执行
- $159 for personal license
- $289 for commercial seat license
* Free during beta, to become commercial, pricing unknown future unknown. - Code coverage indicators in Visual Studio
- Continuous (near real time) testing
- Visual per-test code coverage
- Performance metrics, parallell multi-core test execution
- $器410 获得开发许可
- NDepend的可从NCover,DotCover时,Visual Studio 2013,2012,2010和2008年的code覆盖文件导入覆盖数据。
- 依赖图
- 在依赖结构矩阵
- 在可视化code指标
- 验证code规则
- $410 for developer license
- NDepend can import coverage data from NCover, DotCover, Visual Studio 2013, 2012, 2010 and 2008 Code Coverage files.
- Dependency Graph
- Dependency Structure Matrix
- Visualizing Code Metrics
- Validating Code Rules
推荐答案
我用NCover自带的 TestDriven.NET 的版本。它可以让你轻松地在你的单元测试类库单击鼠标右键,然后点击测试用 - >覆盖,它会拉起报告
I use the version of NCover that comes with TestDriven.NET. It will allow you to easily right-click on your unit test class library, and hit "Test With -> Coverage", and it will pull up the report.
这篇关于code覆盖面为C#/。NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文