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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • junit-plugin
    • None

      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

          [JENKINS-56755] JUnit test report: Age and failedSince are wrong if test method names are not unique

          Lars created issue -
          Stephen McCants made changes -
          Link New: This issue duplicates JENKINS-30413 [ JENKINS-30413 ]
          Lars made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Lars made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            wolterhis Lars
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: