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

JUnit test report: Age and failedSince are wrong if test method names are not unique

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      In the JUnit test report the age and failedSince values are sometimes wrong. A newly failed test sometimes gets an age greater than 1 and a failedSince pointing to a build where the test did not fail.

      I found out that this always happens to tests whose failed method names are not unique. If there are other failed tests with the same method names in the previous report, the wrong failure seems to be recognized as the predecessor.

      In my opinion this could be easily fixed by returning

      className + '.' + testName instead of just testName from CaseResult.java#getTransformedTestName

        Attachments

          Issue Links

            Activity

            Hide
            smccants Stephen McCants added a comment -

            Seems like a duplicate of JENKINS-30413, which has a test case and purposed fix.

            Show
            smccants Stephen McCants added a comment - Seems like a duplicate of JENKINS-30413 , which has a test case and purposed fix.
            Hide
            wolterhis Lars added a comment -

            ... and is still not merged

            Show
            wolterhis Lars added a comment - ... and is still not merged
            Hide
            smccants Stephen McCants added a comment -

            Yes, I just pinged that ticket requesting a little attention... I also voted for it since I just hit this problem myself.  Hopefully it can be fixed easily with just a little attention.

            Show
            smccants Stephen McCants added a comment - Yes, I just pinged that ticket requesting a little attention... I also voted for it since I just hit this problem myself.  Hopefully it can be fixed easily with just a little attention.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              wolterhis Lars
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: