xcode Jenkins 未显示某些项目的测试结果趋势图

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/36767569/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:44:59  来源:igfitidea点击:

Jenkins not showing Test Result Trend graph for some projects

xcodejenkinsreportingxcode-ui-testingui-testing

提问by Charlie Seligman

Im using Jenkins to run UI Testing suites for various xcode projects. Most of the projects shows the 'Test Result Trend' graph with no problem.

我使用 Jenkins 为各种 xcode 项目运行 UI 测试套件。大多数项目都可以毫无问题地显示“测试结果趋势”图。

However, one of my projects fails to show the graph.

但是,我的一个项目未能显示图表。

I have run the build a few times found but cannot find any obvious differences between those projects that display the graph and those that dont:

我已经运行了几次构建,​​但找不到显示图表的项目和不显示图表的项目之间的任何明显差异:

  1. Their configs are setup the same (except for git repo location)
  2. Their console outputs seems to display the same (no mention of errors around populating the graph)
  3. The test-reports/*.xml files all appear in the same valid format
  1. 他们的配置设置相同(git repo 位置除外)
  2. 他们的控制台输出似乎显示相同(没有提到填充图形的错误)
  3. test-reports/*.xml 文件都以相同的有效格式出现

Really at a loss on this one and so thought I would post to see if anyone else has resolved an issue like this before?

真的很茫然,所以我想我会发帖看看其他人以前是否解决过这样的问题?

Updated more details:

更新了更多细节:

  • Its a Freestyle project
  • Using the xcode plugin
  • Using Junit test result plugin set as 'test-reports/*.xml'
  • When I select Test Results Analyzer the full test results display (i.e. its only the Test Result Trend graph that is failing to appear at all). The graph isn't empty it is simply not shown at all. Also, 'Latest Test Results' link is also missing.
  • 这是一个自由式项目
  • 使用 xcode 插件
  • 使用设置为“test-reports/*.xml”的 Junit 测试结果插件
  • 当我选择测试结果分析器时,会显示完整的测试结果(即它只是根本没有出现的测试结果趋势图)。图表不是空的,它根本没有显示。此外,“最新测试结果”链接也缺失。

回答by Manik Jadhav

Test Result Trends does not show up on Job page unless you have at least one successful (100% passed) test run. If you have all test runs as failure till date, it will not show.

除非您至少有一次成功(100% 通过)测试运行,否则测试结果趋势不会显示在作业页面上。如果到目前为止所有测试运行都失败,则不会显示。

回答by Dragan Gorgiev

Little bit late to the party...

聚会有点晚了...

"Test Result Trend" will be shown if you have at least one failedand at least one successfultest.

如果您至少有一项测试失败至少一项测试成功,则会显示“测试结果趋势” 。

That was the case with NUnit plugin in my Jenkins configuration.

我的 Jenkins 配置中的 NUnit 插件就是这种情况。