使用 TeamCity 进行 PartCover
我正在尝试在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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).
一般来说,此消息意味着 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