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

Nested JUnit testsuites are not displayed correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • junit-plugin
    • None
    • Jenkins ver. 1.514

      The nested testsuites do not seem to be displayed correctly by Jenkins.

      Here is my JUnit test report:

      <?xml version="1.0" encoding="utf-8"?>
      <testsuites name="My Testsuites">
      <testsuite name="TestSuite A">
       <testsuite name="Nested TestSuite 1">
        <testcase name="TestCase 1" time="0" />
        <testcase name="TestCase 2" time="0" />
       </testsuite>
       <testsuite name="Nested TestSuite 2">
        <testcase name="TestCase 3" time="0" />
        <testcase name="TestCase 4" time="0" />
       </testsuite>
      </testsuite>
      <testsuite name="TestSuite B">
       <testsuite name="Nested TestSuite 3">
        <testcase name="TestCase 5" time="0" />
        <testcase name="TestCase 6" time="0" />
       </testsuite>
       <testsuite name="Nested TestSuite 4">
        <testcase name="TestCase 7" time="0" />
        <testcase name="TestCase 8" time="0" />
       </testsuite>
      </testsuite>
      </testsuites>
      

      From the attached screenshot, we can clearly see Jenkins does not support the first level <testsuite>.

      My "TestSuite A" and "TestSuite B" are not displayed. And all my "Nested TestSuite N" are attached to the root <testuites>.

      From this fixed bug: https://issues.jenkins-ci.org/browse/JENKINS-6545, it looks Jenkins is expected to support nested testsuites.

        1. report.xml
          0.7 kB
        2. Screenshot-1.png
          Screenshot-1.png
          72 kB
        3. Screenshot-2.png
          Screenshot-2.png
          68 kB

            Unassigned Unassigned
            oliviermartin Olivier Martin
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: