简体   繁体   English

TeamCity 的 PartCover

[英]PartCover with TeamCity

I'm trying to setup partcover for .net 4 on x64 machine with TeamCity .我正在尝试使用 TeamCity在 x64 机器上为 .net 4 设置 partcover

Tests are executed, but coverage report shows 0 coverage.执行了测试,但覆盖率报告显示 0 覆盖率。

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.如果重要的话,我正在运行 TeamCity 6.5.3。 Has anybody managed to run partcover on that version?有人设法在该版本上运行 partcover 吗?

1) PartCover only supports 32 bit processes, so you need to make sure your test runner is also running 32 bit. 1) PartCover 仅支持 32 位进程,因此您需要确保您的测试运行程序也在运行 32 位。

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). 2) 确保使用 regsvr32 注册 PartCover dll(如果使用服务帐户运行团队城市,则不能使用按用户注册)。

In general this messages means TeamCity failed to find any covered line.通常,此消息意味着 TeamCity 未能找到任何覆盖的线路。 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.请随时在http://youtrack.jetbrains.net上创建一个问题,其中包含您从本地测试运行中获得的部分报告。 Please include version number of partcover too.也请包括 partcover 的版本号。

TeamCity 6.5.3 must support partcover 4.0.11129 TeamCity 6.5.3 必须支持 partcover 4.0.11129

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM