NCover 覆盖范围与 UAT 构建和 Live 构建有很大不同
使用 TeamCity 为 MVC2 C# 应用程序运行 MsBuild 任务,我们在 UAT 和 Live 构建中成功运行了 1561 个 XUNit 测试,但 NCover 覆盖率从 UAT 构建的 51% 下降到实时构建的 35%。该解决方案具有相同的配置管理器设置。
由于我们的最小覆盖率低于 50%,我们的构建随后失败,并出现以下错误:
“NCover.Reporting.exe”退出,代码为 3。
当它是来自 svn 的相同源和相同的测试时,有点不明白为什么覆盖率会下降正在执行运行。
还有其他人经历过吗?
Using TeamCity running an MsBuild task for an MVC2 C# application, we successfully run 1561 XUNit tests in both the UAT and the Live builds but the NCover coverage falls from 51% on the UAT build to 35% on the live build. The soulution has identical configuration manager settings.
As our minimum covergae is less than 50% our build subsequently fails with the following error:
"NCover.Reporting.exe" exited with code 3.
A bit lost as to why the coverage drops when it is the same source from svn and identical test run being performed.
Has anyone else experienced this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的建议是给我们发一封电子邮件,最好是[电子邮件受保护]附有两个覆盖范围文件。对于我们来说,在针对相同测试运行的调试和发布版本之间看到小的覆盖率差异并不罕见(因为构建类型生成略有不同的代码),但在针对相同测试运行的相同构建类型上绝不会出现这种情况。
My recommendation would be to drop us an email at [email protected], ideally with the two coverage files attached. It's not unusual for us to see small coverage differences between Debug and Release builds running against the same tests (because the build types generate slightly different code), but never on the same build type running against the same test.