使用 TeamCity 进行 PartCover

发布于 2024-11-28 19:50:22 字数 694 浏览 2 评论 0原文

我正在尝试在 x64 计算机 与 TeamCity

测试已执行,但覆盖率报告显示 0 覆盖率。

我在日志中收到以下消息:

 No executable code was detected. 
The issue could be caused by one of the following:
- Include / exclude patterns are incorrect
- Assemblies are compiled without debugging information
- .pdb files are not available
- Visual Studio code coverage is enabled for MSTest
- .testrunconfig is used for MSTest and Visual Studio code coverage is not disabled (CodeCoverage section with enable="true" is present)

但包含模式是 [*]*

如果重要的话,我正在运行 TeamCity 6.5.3。有人设法在该版本上运行partcover吗?

I'm trying to setup partcover for .net 4 on x64 machine with TeamCity.

Tests are executed, but coverage report shows 0 coverage.

I'm getting the following message in log:

 No executable code was detected. 
The issue could be caused by one of the following:
- Include / exclude patterns are incorrect
- Assemblies are compiled without debugging information
- .pdb files are not available
- Visual Studio code coverage is enabled for MSTest
- .testrunconfig is used for MSTest and Visual Studio code coverage is not disabled (CodeCoverage section with enable="true" is present)

But the include pattern is [*]*.

I'm running TeamCity 6.5.3 if it matters. Has anybody managed to run partcover on that version?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

春庭雪 2024-12-05 19:50:23

1) PartCover 仅支持 32 位进程,因此您需要确保您的测试运行程序也运行 32 位。

2) 确保使用 regsvr32 注册 PartCover dll(如果使用服务帐户运行 team city,则不能使用每用户注册)。

1) PartCover only supports 32 bit processes, so you need to make sure your test runner is also running 32 bit.

2) Make sure you register the PartCover dll using regsvr32 (you can't use per-user registration if using a service account to run team city).

卸妝后依然美 2024-12-05 19:50:23

一般来说,此消息意味着 TeamCity 未能找到任何被覆盖的行。
这可能是由程序集或覆盖参数引起的。

请随时使用您从本地获得的 Partcover 报告在 http://youtrack.jetbrains.net 上创建问题试运行。请同时包含partcover 的版本号。

TeamCity 6.5.3 必须支持partcover 4.0.11129

In general this messages means TeamCity failed to find any covered line.
This could be caused by assemblies or coverage parameters.

Please feel free to create an issue at http://youtrack.jetbrains.net with partcover report you got from a local test run. Please include version number of partcover too.

TeamCity 6.5.3 must support partcover 4.0.11129

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