NCover 覆盖范围与 UAT 构建和 Live 构建有很大不同

发布于 2024-09-08 23:04:06 字数 300 浏览 3 评论 0原文

使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风流物 2024-09-15 23:04:06

我的建议是给我们发一封电子邮件,最好是[电子邮件受保护]附有两个覆盖范围文件。对于我们来说,在针对相同测试运行的调试和发布版本之间看到小的覆盖率差异并不罕见(因为构建类型生成略有不同的代码),但在针对相同测试运行的相同构建类型上绝不会出现这种情况。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文