gpt4 book ai didi

sonarqube - 将 Slather 报告发布到 SonarQube

转载 作者:行者123 更新时间:2023-12-04 17:46:40 28 4
gpt4 key购买 nike

我正在使用 FaSTLane 构建和测试我的 ObjC 项目。我使用 scan 操作来运行单元测试用例,并使用 slather 操作来生成代码覆盖率报告。我能够使用 slather 操作生成 cobertura.xml 报告,但无法将报告发布到 SonarQube。

我正在使用 SonarQube 6.4 和 faSTLane 2.64.0。

快速文件

scan(
workspace: "Sample.xcworkspace",
scheme: "SampleTests",
code_coverage: true,
output_types: "html"
)
slather(
cobertura_xml: true,
output_directory: "./reports",
proj: "Sample.xcodeproj",
workspace: "Sample.xcworkspace",
scheme: "SampleTests",
)
sonar

分析已发布到 Sonar,但代码覆盖率报告未更新。请让我知道我在哪里遗漏了 key 。

最佳答案

从您对问题的评论来看,您似乎还没有尝试配置报告的路径,因此很自然没有导入覆盖率数据。分析无法凭直觉判断报告的位置或应该阅读报告。

话虽如此,您还表明您正在生成一个 cobertura.xml 文件,但这不是 currently supported by SonarCFamily for Objective-C 格式之一。 .因此,您需要将覆盖率数据输入 Generic Coverage format ,然后使用 sonar.coverageReportPaths 分析属性包含该报告的路径。

关于sonarqube - 将 Slather 报告发布到 SonarQube,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48199990/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com