Azure devops Azure管道构建中的代码覆盖率屏幕挂起

Azure devops Azure管道构建中的代码覆盖率屏幕挂起,azure-devops,azure-pipelines,cobertura,Azure Devops,Azure Pipelines,Cobertura,我目前正在为我的存储库设置azure管道。目前,它正确构建并运行单元测试。然而,“代码覆盖率”选项卡只是无限旋转。你知道这是什么原因吗 详细信息: 工件目录如下所示: 控制台显示此错误: 错误:找不到路由id的路由 ms.vss-tfs-web.project-overview-route。确保所请求的路由 添加到路由共享数据 这是运行和生成测试结果的方式: dotnet tool install dotnet-reportgenerator-globaltool --tool-path .

我目前正在为我的存储库设置azure管道。目前,它正确构建并运行单元测试。然而,“代码覆盖率”选项卡只是无限旋转。你知道这是什么原因吗

详细信息

工件目录如下所示:

控制台显示此错误:

错误:找不到路由id的路由 ms.vss-tfs-web.project-overview-route。确保所请求的路由 添加到路由共享数据

这是运行和生成测试结果的方式:

dotnet tool install dotnet-reportgenerator-globaltool --tool-path .

dotnet test $(Build.SourcesDirectory)\RulesMadeEasy.Tests -c debug --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --results-directory $(Build.SourcesDirectory)\TestResults\ /p:CoverletOutput=$(Build.SourcesDirectory)\TestResults\

.\reportgenerator -reports:$(Build.SourcesDirectory)\TestResults\coverage.cobertura.xml -targetdir:$(Build.SourcesDirectory)\TestResults\ -reporttypes:"HTMLInline_AzurePipelines;Badges" --version 4.0.0-rc4
代码覆盖率结果将使用PublishCodeCoverageResults@1具有以下输入的任务 投入: codeCoverageTool:Cobertura

    summaryFileLocation: '$(Build.SourcesDirectory)\TestResults\coverage.cobertura.xml'

    reportDirectory: '$(Build.SourcesDirectory)\TestResults'

您必须在Azure DevOps项目中启用Boards服务,才能让错误消失。

我在这里打开了一个问题:我们有一个赢家