Jenkins not showing Test Result Trend graph for some projects
Asked Answered
B

2

12

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.

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

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.
Baikal answered 21/4, 2016 at 10:59 Comment(7)
What kind of job is it? How do you publish test results? What step do you use for that?Deon
Luka5z updated the original item to hopefully answer your question.Baikal
This might seem like a dumb question, but did you make sure that you have a post-build action setup in the job to publish junit test results? Maybe the job configurations got inadvertently changed!?!Galenism
Hi Ellis. Yeah all the configurations (including post build actions) are the same in the project that shows the graph and the project that doesnt. Really has me stumped this one :-/Baikal
@CharlieSeligman Let's try a workaround: Create new job from a copy of working configuration, and change just a Git repository. Check if this fresh job will correctly display Test Trend Results.Deon
@Deon tried that and afraid the graph didnt appear.Baikal
@CharlieSeligman Try: 1) Update Dashboard View Plugin 2) Restart Jenkins. If 1) and 2) won't help maybe this problem is related to naming convention. Please read an article explaining some obscure issue with Test Result Trend. If that won't help you, it's high time to issue Jenkins bug.Deon
E
27

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.

Emmery answered 4/1, 2017 at 6:40 Comment(6)
What do you mean by successful test run? Does it mean 100% pass rate or just that the jenkins build was successful?Connected
I think you meant 100% pass rate. I tried that and it worked for me. Thank you!Connected
Yes, I meant 100% SuccessEmmery
I had the same problem with the results not showing. However, I didn't need to get all the tests to pass—I just needed one test run to claim to have passed.Ferrell
Thank you @ManikJadhav it seems to be a problem even today. At least one complete test run must be successful on 100%.Vulpine
So, that's a bug, I assume :-/Humiliate
C
11

Little bit late to the party...

"Test Result Trend" will be shown if you have at least one failed and at least one successful test.

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

Coggins answered 23/11, 2017 at 15:22 Comment(4)
This answers the question perfectlyKaule
I just ran into this exact scenario - I wonder if anyone has opened a bug/issue against the plugin? I also do not see the 'cucumber reports' option on the left unless there was at least one success within the job (different cucumber-reports plugin, same issue)Patman
Why do I need to have a failed test in order for the test result trend to show?Astro
I ran into this when mstest and nunit were both being used but one of them had zero tests yet. I simply removed nunit test run from the build. Everything was groovy then.Gravedigger

© 2022 - 2024 — McMap. All rights reserved.