[英]error in Publish code coverage results in azure devops
I have this error in Publish code coverage results in pipeline in azure devops我在 azure devops 中的管道中发布代码覆盖结果时出现此错误
Failed to generate Html report.无法生成 Html 报告。 Error: 1错误:1
can you help me plz??你能帮我吗?
this is my Publish code coverage results sittings这是我的发布代码覆盖率结果
Publish code coverage results sittings pic发布代码覆盖率结果图片
and this is my logs这是我的日志
============================================================================== "C:\Program Files\dotnet\dotnet.exe" C:\Azure DevOps Agent\agent prod\_work\_tasks\PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97\1.160.3\netcoreapp2.0\ReportGenerator.dll -reports:**/testresults/coverage/code-coverage.xml -targetdir:C:\Azure DevOps Agent\agent prod\_work\_temp\cchtml -reporttypes:HtmlInline_AzurePipelines Could not execute because the specified command or file was not found. Possible reasons for this include: * You misspelled a built-in dotnet command. * You intended to execute a .NET program, but dotnet-C:\Azure does not exist. * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH. ##[warning]Failed to generate Html report. Error: 1 Reading code coverage summary from 'C:\Azure DevOps Agent\agent prod\_work\3\s\testresults\coverage\code-coverage.xml' Async Command Start: Publish code coverage Publishing coverage summary data to TFS server. Lines- 0 of 0 covered. Branches- 0 of 0 covered. Modifying Cobertura Index file Publishing code coverage files to TFS server. Uploading 1 files File upload succeed. Published 'C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\Code Coverage Report_374' as artifact 'Code Coverage Report_374' Async Command End: Publish code coverage Finishing: Publish code coverage from **/testresults/coverage/code-coverage.xml
and this my code-coverage.xml path这是我的代码-coverage.xml 路径
It seems that there something wrong with the path you need to have the path inside contation when the folder name have spaces in it.当文件夹名称中有空格时,您需要在 contation 中包含路径的路径似乎有问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.