在应用程序中定位发布模式时,是否有人使用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文件是在发布模式下生成的
答案 0 :(得分:3)
根据日志,正常拍摄快照并且必须显示覆盖率统计信息。看起来源代码构建和覆盖分析具有不同的构建配置。您可以将构建和覆盖分析放在单个配置中,也可以通过TC-parameter
配置源代码映射dotNetCoverage.dotCover.source.mapping (format: path1 => path2)
当前结帐目录可以指定为% teamcity.build.checkoutDir%