Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-7781

"Test Statistics Grid" double counting aggregated tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • dashboard-view-plugin
    • None
    • Running Hudson 1.379 on Tomcat on Linux

      I'm trying to use the dashboard-view "Test Statistics Grid" portlet, and I've noticed that it is double counting tests where the jobs use "Aggregate downstream test results". I have one main job with three downstream jobs. The main job has a few tests, but the majority of the tests are in the three downstream jobs. Presumably because Hudson is aggregating the test results, I am seeing double counts in the portlet. I would have expected it to count any given test only once.

      In actuality, my main job has 4 tests, and the three sub jobs have 684 tests in total. dashboard-view is reporting that the main job has 684 tests (so it is counting the subs, but not its own), in addition to the sub jobs, for a total of 1368 tests.

      It seems Hudson itself does not report the 4 tests in main in the Aggregated Test Result, so perhaps missing those is not the fault of dashboard-view. However, I should note, the "Test Trend Chart" portlet gives the correct numbers (684 without the main included, 688 with).

      Please let me know if anything should be tried or you need more information.

      I've pasted the table generated below, although I fear it will be difficult to read.

      Test Statistics Grid
      Job Success Failed Skipped Total

      1. % # % # % #
        SuccessTest Result: 0 tests in total.mainjob 684 100% 0 0% 0 0% 684
        SuccessTest Result: 0 tests failing out of a total of 26 tests.subjob1 26 100% 0 0% 0 0% 26
        SuccessTest Result: 0 tests failing out of a total of 563 tests.subjob2 563 100% 0 0% 0 0% 563
        SuccessTest Result: 0 tests failing out of a total of 95 tests.subjob3 95 100% 0 0% 0 0% 95
        Total 1368 100% 0 0% 0 0% 1368

            Unassigned Unassigned
            ellisonch ellisonch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: