【发布时间】:2011-08-10 07:24:22
【问题描述】:
我正在尝试在 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)
但包含模式是[*]*。
如果重要的话,我正在运行 TeamCity 6.5.3。有人设法在该版本上运行 partcover 吗?
【问题讨论】:
-
我认为 JetBrains 没有升级 TeamCity 以使用最新版本的 PartCover(2.2 和 2.3 是仅 .NET2 的旧版本)而不是使用内置集成尝试直接执行 PartCover即如果使用 nant 使用 exec 任务。
-
我知道这不能完全回答您的问题,但您可能会发现,如果您使用 Jetbrains DotCover 而不是尝试与 PartCover 集成,您可以获得足够准确的覆盖率报告。我们在我们的项目中使用它,设置起来很轻松。 Teamcity Dotcover
标签: .net teamcity code-coverage partcover teamcity-6