3

有没有人成功地使用 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 文件是在发布模式下生成的

4

1 回答 1

3

根据日志,快照拍摄正常,必须提供覆盖率统计信息。看起来源代码构建和覆盖分析处于不同的构建配置中。您可以将构建和覆盖分析放在一个配置中,也可以通过 TC 参数配置源代码映射

dotNetCoverage.dotCover.source.mapping (format: path1 => path2)

当前结帐目录可以指定为% teamcity.build.checkoutDir%

于 2012-10-24T14:58:01.397 回答