Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins not showing Test Result Trend graph for some projects

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.
like image 425
Charlie Seligman Avatar asked Apr 21 '16 10:04

Charlie Seligman


People also ask

How do I enable test result trend in Jenkins?

To get the resulting trend of Jenkins's job execution you just go into your project and click on the hyperlink trend which would be available just after build history. By doing this, you will get the result of the last 20 or 30 days which is again configurable.

How can we see test results on Jenkins server itself?

You get to the Test Result page by clicking a build link on the Status or History page of your Jenkins project, or by clicking Test Result in the menu on the left. Click the image to enlarge it. At the top of the page, Jenkins displays summary information about the executed tests and their total execution time.

How do I include JUnit results in Jenkins?

junit : Archive JUnit-formatted test results To use this feature, first set up your build to run tests, then specify the path to JUnit XML files in the Ant glob syntax, such as **/build/test-reports/*. xml. Be sure not to include any non-report files into this pattern.

Which plugin integrates the results of other plugins into a consolidated trend graph and view?

It's a jenkins plugin that collects jobs and test results and reports them in : html, email, graphs.


Video Answer


2 Answers

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.

like image 89
Manik Jadhav Avatar answered Sep 17 '22 11:09

Manik Jadhav


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.

like image 24
Dragan Gorgiev Avatar answered Sep 19 '22 11:09

Dragan Gorgiev