【问题标题】:TeamCity + ReportGeneratorTeamCity + 报表生成器
【发布时间】:2021-12-03 10:42:03
【问题描述】:

大家早上好

我正在使用 Coverlet 在 TeamCity 中运行我的测试。在我运行要生成报告的测试后,这工作正常。

Write-Host "Installing report generator" -ForegroundColor Green -BackgroundColor White 

dotnet tool install --tool-path tools dotnet-reportgenerator-globaltool

Write-Host "Finished installic report generator" -ForegroundColor Green -BackgroundColor White 

reportgenerator "-reports:$filesString" "-targetDir:$targetDir"

上述解决方案在本地运行,但在 TeamCity 中出现以下错误:

reportgenerator : 术语“reportgenerator”未被识别为 cmdlet、函数、脚本文件或可运行程序的名称。查看 名称的拼写,或者如果包含路径,请验证 路径正确,然后重试。

任何想法我缺少什么?

【问题讨论】:

    标签: testing teamcity reportgenerator coverlet


    【解决方案1】:

    您正在将 ReportGenerator 安装到 tools 文件夹。

    tools\reportgenerator 执行它应该适合你。

    您可以在此处查看“自述文件”标签: https://www.nuget.org/packages/dotnet-reportgenerator-globaltool/5.0.0

    它显示了 3 个不同的安装选项以及将 ReportGenerator 作为全局工具运行的相应命令

    这并非特定于 ReportGenerator。每个全局工具都有相同的行为。

    【讨论】:

      猜你喜欢
      • 2021-10-31
      • 2011-04-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多