有人成功地在应用程序中使用 dotCover(最好是 TeamCity)来运行覆盖率报告,同时针对发布模式进行目标定位吗?这是我收到的错误消息(此配置在调试模式下有效):
Generate dotCover report (6s)
[09:53:44][Generate dotCover report] Started dotCover: E:\BuildAgent3\tools\dotCover\dotCover.exe report F:\TCAgents\ag3temp\buildTmp\dotcover3521342814066873775.xml
[09:53:44]
[Generate dotCover report] Output: JetBrains dotCover Console Runner v2.0.425.62. Copyright (c) 2009-2012 JetBrains s.r.o. All rights reserved.
[JetBrains dotCover] Report generation started [8/29/2012 9:53:43 AM]
[JetBrains dotCover] Report generation finished [8/29/2012 9:53:43 AM]
[Generate dotCover report] dotCover exited with code: 0
Generate dotCover HTML report
[Generate dotCover HTML report] No source files were found under the build checkout directory F:\TCAgents\ag3work\724608d32a4f6354. No source files will be included in dotCover report as source code of classes.
我们希望生成一组编译好的工件来通过交付流水线(包括部署)。我们在使用 NCover 时没有遇到这个问题 - 它能够在我们的发布构建上生成覆盖率报告。
注意:在发布模式下正在生成 .pdb 文件。