我正在尝试在x64机器with TeamCity上设置partcover for .net 4。
测试被执行,但是覆盖率报告显示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)但是include模式是[*]*。
如果重要的话,我正在运行TeamCity 6.5.3。有没有人能在这个版本上运行partcover?
发布于 2011-08-15 06:58:08
1) PartCover仅支持32位进程,因此您需要确保您的测试运行器也运行32位。
2)确保使用regsvr32注册PartCover dll (如果使用服务帐户运行team city,则不能使用按用户注册)。
发布于 2011-08-10 20:55:48
通常,此消息表示TeamCity找不到任何覆盖的行。这可能是由程序集或覆盖率参数引起的。
请随时在http://youtrack.jetbrains.net上创建一个问题,其中包含您从本地测试运行中获得的部分覆盖报告。请将partcover的版本号也包括在内。
TeamCity 6.5.3必须支持partcover 4.0.11129
https://stackoverflow.com/questions/7007221
复制相似问题