【问题标题】:Missing failure tags in Jenkins test reportJenkins 测试报告中缺少失败标签
【发布时间】:2016-09-26 09:08:11
【问题描述】:

在 Jenkins 运行期间生成的测试报告 (**/test-results/*.xml) 不包含用于失败测试的任何失败标签 <failure message="some message" type="Failure">

但是,testsuite 标签会确认失败的测试并提供失败的数量。

此问题导致 Jenkins 作业无法呈现任何失败的测试运行。目前所有的工作看起来都已经过去了。我怀疑这与升级到 Xcode 8 有关。

还有其他人看到或知道原因吗?

【问题讨论】:

标签: jenkins xcode8 xcode-plugin


【解决方案1】:

就像您发布的最新的 Jenkins XCode 插件中的一个已知错误。

您可以做的一种解决方法是在您的构建服务器上安装 xcpretty 并使用它来格式化来自 xcode 的测试结果。

我遇到了 XCode 8 的问题,即 UI 自动化测试失败未正确填充到 Jenkins 中的 XML 结果中,并通过删除 XCode 插件并仅通过 Execute Shell 构建来修复它。

/usr/bin/xcodebuild -scheme "YourScheme" -workspace YourWorkspace.xcworkspace -configuration Debug build test | xcpretty -r junit

这会将您的 XML 测试结果转储到 build/reports/*.xml,然后您可以从那里在 Jenkins 作业中查看它们。

【讨论】:

    猜你喜欢
    • 2018-03-04
    • 1970-01-01
    • 2018-04-05
    • 1970-01-01
    • 1970-01-01
    • 2020-03-24
    • 1970-01-01
    • 2017-08-27
    • 1970-01-01
    相关资源
    最近更新 更多