nunit - 无法使用 NUnit 和 PartCover 在 TeamCity 中生成覆盖

标签 nunit partcover teamcity-8.0

我使用的是 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/

相关文章:

attachment - 将日志文件附加到 teamcity 中的电子邮件通知

asp.net-mvc-4 - 使用 Kendo 对 ASP.NET MVC4 Controller 进行单元测试

nunit - 为什么 Nunit3 OneTimeSetUp() 在 [Test] 之后而不是之前被调用

c# - 通过 NUnit 运行 C++ 代码

OpenCover 中表达式的分支覆盖率

mstest - PartCover 控制台生成空输出 xml

c# - 在 NUnit 2.5.8 中使用 TestContext 时出现 NullReferenceException

unit-testing - 让 PartCover 发挥作用

java - 为 TeamCity 插件放置属性文件的正确位置是什么,以便它可以轻松编辑?

ssh - Teamcity SSH 私钥登录失败 : invalid privatekey