我使用的是 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)
有人知道我做错了什么吗?
最佳答案
我卸载了 PartCover 并重新安装了它,现在它似乎可以正常工作了。我认为问题在于我使用的是 PartCover 的测试版而不是稳定版。
关于nunit - 无法使用 NUnit 和 PartCover 在 TeamCity 中生成覆盖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20041630/