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

Junit tests with same name not handled correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • junit-plugin
    • None
    • Platform: All, OS: All

      If you have multiple Junit tests with the same name, for example, if you run the
      same tests on multiple platforms, then links to the results of those tests are
      not correct.

      To recreate, you can do the following:

      Take the xml output of a junit test, and copy it to two directories in a hudson
      build for processing. For example: tests/windows/myjunittest.xml and
      tests/linux/myjunittest.xml

      Change the value of <system-err> to something so there is a difference in the
      tests. for example <system-err>This is the linux test</system-err>

      After the build and junit results processing, Hudson will say that 2 tests were
      run. But, if you click on the results for both tests, both will be exactly the
      same. The URLs to the test results are both equal, so it appears there is no
      way for Hudson to differentiate if the user wants to see the results of the
      first or second test.

            Unassigned Unassigned
            smithgcovert smithgcovert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: