将SonarQube集成到TFS 2013中:无法找到代码覆盖率命令行工具

Devrath ND

我正在尝试将SonarQube与TFS 2013集成,并尝试使用Visual Studio 2013构建解决方案。

我遵循了SonarQube提供的文档中的所有内容。https://github.com/SonarSource/sonar-.net-documentation/releases/download/1.1.0/SonarQube-Setup-Guide-For-Net-Users-V-1-1-0.pdf

这是我得到的日志。

Overall Build Process

00:18
Overall build process

00:00
Update build number

00:18
Run on agent (reserved build agent Default Agent - cvm-511)

00:00
Initialize environment

00:02
Get sources from Team Foundation Version Control

00:00
Associate the changesets that occurred since the last good build

00:10
Compile, Test and Publish

00:03
Run optional script before MSBuild

00:07
Run MSBuild

00:05
Built $/TeleHealthEx/HeathExService/HeathExService.sln for default targets.

00:03
Built $/TeleHealthEx/HeathExService/HealthExDAL/HealthExDAL.csproj for default targets.

00:00
Built $/TeleHealthEx/HeathExService/HealthExUtility/HealthExUtility.csproj for default targets.

00:00
Built $/TeleHealthEx/HeathExService/HealthExModels/HealthExModels.csproj for default targets.

00:00
Built $/TeleHealthEx/HeathExService/HealthExEF/HealthExEF.csproj for default targets.
 AppointmentInfoDA.cs (32): The variable 'ex' is declared but never used
 AppointmentInfoDA.cs (52): The variable 'ex' is declared but never used
 DoctorDetailsDL.cs (82): The variable 'ex' is declared but never used

00:01
Built $/TeleHealthEx/HeathExService/HealthExModels/HealthExModels.csproj for default targets.

00:02
Built $/TeleHealthEx/HeathExService/HealthExEF/HealthExEF.csproj for default targets.

00:00
Built $/TeleHealthEx/HeathExService/HealthExModels/HealthExModels.csproj for default targets.

00:03
Built $/TeleHealthEx/HeathExService/HealthExBAL/HealthExBAL.csproj for default targets.

00:00
Built $/TeleHealthEx/HeathExService/HealthExModels/HealthExModels.csproj for default targets.

00:00
Built $/TeleHealthEx/HeathExService/HealthExDAL/HealthExDAL.csproj for default targets.
 BookMarkBL.cs (73): The variable 'ex' is declared but never used
 BookMarkBL.cs (99): The variable 'ex' is declared but never used
 DoctorDetailsBL.cs (68): The variable 'ex' is declared but never used

00:01
Built $/TeleHealthEx/HeathExService/PayU/PayU.csproj for default targets.

00:01
Built $/TeleHealthEx/HeathExService/HealthExVidyo/HealthExVidyo.csproj for default targets.

00:00
Built $/TeleHealthEx/HeathExService/HealthExUtility/HealthExUtility.csproj for default targets.

00:04
Built $/TeleHealthEx/HeathExService/HealthExService1/HealthExService.csproj for default targets.

00:00
Built $/TeleHealthEx/HeathExService/HealthExUtility/HealthExUtility.csproj for default targets.

00:00
Built $/TeleHealthEx/HeathExService/HealthExModels/HealthExModels.csproj for default targets.

00:00
Built $/TeleHealthEx/HeathExService/HealthExBAL/HealthExBAL.csproj for default targets.
MSBuild Log File

00:00
Run optional script after MSBuild

00:00
Run optional script before Test Runner

00:00
Run VS Test Runner

00:00
**Run optional script after Test Runner
 2:26:05 PM  Failed to locate the code coverage command line tool
 Post-processing failed. Exit code: 1
 Exception Message: TF270015: 'MSBuild.SonarQube.Runner.exe' returned an unexpected exit code. Expected '0'; actual '1'. See the build logs for more details. (type UnexpectedExitCodeException)
Exception Stack Trace:    at     System.Activities.Statements.Throw.Execute(CodeActivityContext context)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at     System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)**

00:00
Handle Exception

00:00
Create a bug for the build failure

00:00
Rethrow the exception so the build will stop

00:01
Perform Final Actions On Agent

00:01
Copy binaries to drop

00:00
Reset the Environment
Work item '669: Build Failure in Build: HealthExServiceBuild_20150831.5' was opened by the build.

请引导我朝正确的方向解决。

迪内什·博肯斯汀(Dinesh Bolkensteyn)

必须将Visual Studio安装提供的CodeCoverage.exe内容与MSBuild SonarQube Runner TFS集成在生成计算机上。此限制将在即将发布的1.0.1版本中解决:https//jira.sonarsource.com/browse/SONARMSBRU-130

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

将Scala代码覆盖率工具jacoco集成到play 2.2.x项目中

来自分类Dev

将Scala代码覆盖率工具jacoco集成到play 2.2.x项目中

来自分类Dev

无法将下载的代码覆盖率工具转换为XML

来自分类Dev

代码覆盖率:Cobertura和SonarQube 5.3 Maven集成

来自分类Dev

代码覆盖率:Cobertura和SonarQube 5.3 Maven集成

来自分类Dev

SonarQube与TFS集成期间没有代码覆盖结果

来自分类Dev

如何在 Sonarqube 中获得新的代码覆盖率?

来自分类Dev

集成测试中的golang代码覆盖率?

来自分类Dev

SonarQube不收集代码覆盖率

来自分类Dev

PHPUnit:在命令行中运行时,显示代码覆盖率吗?

来自分类Dev

如何确定Sonarqube分析中使用的代码覆盖率工具?

来自分类Dev

如何将Maven多项目构建中的脱机JaCoCo执行文件集成到SonarQube中

来自分类Dev

Jacoco eclipse插件和SonarQube中的代码覆盖率百分比值不同

来自分类Dev

SonarQube可以配置为在“预览”模式报告中显示代码覆盖率吗?

来自分类Dev

TFS 2015中的Javascript单元测试代码覆盖率

来自分类Dev

Visual Studio VS TFS配置中的代码覆盖率之间的差异

来自分类Dev

如何在TFS 2015中自定义代码覆盖率摘要

来自分类Dev

SonarQube没有提高Cobertura的代码覆盖率

来自分类Dev

SonarQube分析未显示代码覆盖率

来自分类Dev

SonarQube:仅计算增量的代码覆盖率

来自分类Dev

SonarQube:从未计算过新代码的覆盖率

来自分类Dev

SonarQube没有提高Cobertura的代码覆盖率

来自分类Dev

SonarQube:仅计算增量的代码覆盖率

来自分类Dev

集成测试,单元测试和代码覆盖率

来自分类Dev

REST API与代码覆盖率的集成测试

来自分类Dev

Ruby脚本到命令行工具

来自分类Dev

TFS 2015代码覆盖率未显示

来自分类Dev

TFS 2015代码覆盖率未显示

来自分类Dev

tfs 2017 是否提供 dotnetcore 代码覆盖率

Related 相关文章

  1. 1

    将Scala代码覆盖率工具jacoco集成到play 2.2.x项目中

  2. 2

    将Scala代码覆盖率工具jacoco集成到play 2.2.x项目中

  3. 3

    无法将下载的代码覆盖率工具转换为XML

  4. 4

    代码覆盖率:Cobertura和SonarQube 5.3 Maven集成

  5. 5

    代码覆盖率:Cobertura和SonarQube 5.3 Maven集成

  6. 6

    SonarQube与TFS集成期间没有代码覆盖结果

  7. 7

    如何在 Sonarqube 中获得新的代码覆盖率?

  8. 8

    集成测试中的golang代码覆盖率?

  9. 9

    SonarQube不收集代码覆盖率

  10. 10

    PHPUnit:在命令行中运行时,显示代码覆盖率吗?

  11. 11

    如何确定Sonarqube分析中使用的代码覆盖率工具?

  12. 12

    如何将Maven多项目构建中的脱机JaCoCo执行文件集成到SonarQube中

  13. 13

    Jacoco eclipse插件和SonarQube中的代码覆盖率百分比值不同

  14. 14

    SonarQube可以配置为在“预览”模式报告中显示代码覆盖率吗?

  15. 15

    TFS 2015中的Javascript单元测试代码覆盖率

  16. 16

    Visual Studio VS TFS配置中的代码覆盖率之间的差异

  17. 17

    如何在TFS 2015中自定义代码覆盖率摘要

  18. 18

    SonarQube没有提高Cobertura的代码覆盖率

  19. 19

    SonarQube分析未显示代码覆盖率

  20. 20

    SonarQube:仅计算增量的代码覆盖率

  21. 21

    SonarQube:从未计算过新代码的覆盖率

  22. 22

    SonarQube没有提高Cobertura的代码覆盖率

  23. 23

    SonarQube:仅计算增量的代码覆盖率

  24. 24

    集成测试,单元测试和代码覆盖率

  25. 25

    REST API与代码覆盖率的集成测试

  26. 26

    Ruby脚本到命令行工具

  27. 27

    TFS 2015代码覆盖率未显示

  28. 28

    TFS 2015代码覆盖率未显示

  29. 29

    tfs 2017 是否提供 dotnetcore 代码覆盖率

热门标签

归档