【发布时间】:2020-08-31 23:35:53
【问题描述】:
我在 Angular 项目中通过声纳云获取代码覆盖率报告时遇到问题。
我已经配置了 karma 工具来获取测试报告。输出文件正在生成 .xml 格式的测试报告。我也在声纳中配置了测试报告路径:
sonar.cs.vscoveragexml.reportsPaths=$(Agent.BuildDirectory)/TestResults/*.xml
但是sonar cloud正在搜索.trx扩展名测试报告。下面是错误日志。
06:16:44.724 Looking for TRX files in: D:\a\1\TestResults
06:16:44.724 No test results files found
06:16:45.083 Did not find any binary coverage files in the expected location.
06:16:45.083 Falling back on locating coverage files in the agent temp directory.
06:16:45.083 Searching for coverage files in D:\a\_temp
请求帮助我解决同样的问题。
【问题讨论】:
-
您的问题现在解决了吗?现在是否可以成功找到测试结果文件?随时告诉我们最新状态。
标签: angular azure-devops azure-pipelines sonarcloud