Hudson 与 MSBuild 和 MSTest,如何获得代码覆盖率
您对 Hudson 中的代码覆盖率有什么意见吗?现在我已经使用 Msbuild 和 MSTest 进行了构建,这就是工作。
但对于代码覆盖率,我想我需要一些帮助。我搜索过有人使用 nCover another 与 Emma 一起使用。哪一种更好、更容易?也许参考可以帮助我。
最良好的问候,
Do you have some opinion for code coverage in Hudson.. Now i have build with Msbuild and MSTest and that's work.
But for code coverage, i think i need some help. I have searched that somebody use nCover another with Emma. Which one is better and more easier ? And maybe reference to help me.
Best regard,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是.NET (NCover) 还是Java (Emma) 或两者兼而有之?
NCover 应该与 Hudson 合作,但
存在开源项目成本,寻找 PartCover 以及最近的 OpenCover。
所有三个 .NET 工具都支持命令行,因此它们应该与 Hudson 集成。
Are you .NET (NCover) or Java (Emma) or both?
NCover should work with Hudson but costs
Open Source projects exist look for PartCover and more recently OpenCover.
All three .NET tools support command-line and as such they should integrate with Hudson.
我们目前使用 JetBrains 的 dotCover。它比 NCover 便宜,并且与 Visual Studio 集成良好。您不必使用单独的应用程序(NCover Explorer)来查看带有覆盖/未覆盖突出显示的代码,这很棒。
dotCover 的命令行版本允许您创建分析的 XML 文件,并且您可以通过解析 XML。 (在 MSBuild 社区任务库中)解析输出。
正确设置需要一段时间,但它确实有效。
We are currently using dotCover by JetBrains. It's cheaper than NCover and it integrates well with Visual Studio. You don't have to use a separate application (NCover Explorer) to view your code with the covered/uncovered highlighting, which is great.
The command line version of dotCover allows you to create XML files of the analysis and you can parse the XML via <XmlRead> (in the MSBuild Community Tasks library) to parse the output.
It takes a while to get set up properly, but it works.