Visual Studio Team System 2008 Developer Edition 上的代码覆盖率(在 NUnit 应用程序上)
这可能吗? 我期待着一个教程来解释实现这一目标的步骤。
Is this possible? I am looking forward to a tutorial which explains the steps to achieve this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
TestDriven.NET 能够通过团队覆盖进行测试(NUnit/MSTest/etc)(自从您有团队系统:Dev)。
演练: 这里(您还可以获得覆盖率结果窗口,用于查看每种方法的覆盖率) - 但这说明了一切:
(来源:mutantdesign.co.uk)
您可以使用 NUnit 测试,但使用 MS IDE 集成进行着色、百分比等(不需要 NCover)。 我一直用这个 ;-p
优点是:
TestDriven.NET has the ability to test (NUnit/MSTest/etc) with Team Coverage (which you already have since you have Team System : Dev).
Walkthrough: here (you also get the coverage results window for looking at the coverage per method) - but this says it all:
(source: mutantdesign.co.uk)
You can use NUnit tests, but use the MS IDE integration for colorization, percentagaes, etc (no need for NCover). I use this all the time ;-p
The advantages are:
这里有一个教程将 Ncover 与 MSBuild 集成。 这是一个教程 当 NCover 报告代码覆盖率低于最小阈值时,如何告诉 Team Build 构建失败。 据我所知,目前还没有一种方法可以将 NCover 结果直接发布到 TFS 数据仓库,但我希望有人能证明我是错的。
Here's a tutorial on integrating NCover with MSBuild. Here's a tutorial on how to tell Team Build to fail a build when NCover reports code coverage below a minimum threshold. To my knowledge there isn't yet a way to publish your NCover results directly to the TFS data warehouse, but I'd love someone to prove me wrong.
TestDriven.NET 也可以与 Ncover 很好地配合使用。 您可以从 NCover 获得一些非常好的 html 报告,并且可以将其与 Nant 集成。
TestDriven.NET will also work very well with NCover. You can get some very nice html reports out of NCover, and you can integrate it with Nant.