nUnit的代码覆盖率? [英] Code coverage with nUnit?

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

问题描述

使用nUnit时是否可以查看代码覆盖率?我知道Visual Studio中有这样的功能,但是您可以将其与nUnit一起使用还是仅与内置vs单元测试一起使用?

Is there a way to see the code coverage when using nUnit? I know there's such a feature in Visual Studio, but can you use it with nUnit or only with the built-in vs unit tests?

推荐答案

您可以使用 NCover 。现在,它的商业版本仍然是版本1.5.8 (位于页面底部,社区版)免费,如果您想对其进行可视化,请使用 NCoverExplorer

You can use NCover. Now its commercial, but version 1.5.8 (at the bottom of page, community edition) is still free and if you want to visualize it, then use NCoverExplorer.

编辑:

可以用Visual Studio代码包装nUnit或mbUnit也一样 VSTS代码覆盖范围跟踪器

It's possible to wrap nUnit or mbUnit with Visual Studio code as well. VSTS Code Coverage Runner

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

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