【发布时间】: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