PartCover与TeamCity

时间:2011-08-10 07:24:22

标签: .net teamcity code-coverage partcover teamcity-6

我正在尝试在x64计算机partcover for .net 4上设置with 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?

2 个答案:

答案 0 :(得分:7)

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

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

答案 1 :(得分:1)

通常,此消息表示TeamCity未能找到任何覆盖的行。 这可能是由装配或覆盖参数引起的。

请随时在http://youtrack.jetbrains.net创建一个问题,并提供您从本地测试运行中获得的部分报告。请包括partcover的版本号。

TeamCity 6.5.3必须支持partcover 4.0.11129

相关问题