我使用的是 TeamCity 8.0.4 版。

我有一个构建步骤,它使用 NUnit runner 和 PartCover 作为覆盖工具。

我已按照此处概述的步骤 ( http://www.jeremyskinner.co.uk/2010/07/23/using-teamcity-with-partcover-4/ ) 操作。也就是说,我已经复制了 PartCover.dll 并对其进行了适当的重命名,并使用了博客中链接的 XSLT。

“包括程序集”字段只有:

[*]*

“排除程序集”字段只有:
[*.Tests]*

正确执行测试后,我的构建日志收到以下消息:
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)

有谁知道我做错了什么?

最佳答案

我卸载了 Part Cover 并重新安装了它,现在它似乎可以正常工作了。我认为问题在于我使用的是 Part Cover 的测试版而不是稳定版。

关于nunit - 无法在 TeamCity 中使用 NUnit 和 PartCover 生成覆盖范围,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20041630/

10-12 12:27
查看更多