JUnit testuite with no name will not be displayed in the UI

XMLWordPrintable

    • Severity 3 - Minor

      Summary

      Parsing a JUnit file that has an testsuite entry with an empty name will not display a failed test results for that suite.  This can arise when using automated test creation tools such as codeception. 

      Environment

      • Bamboo 5.9,
      • Bamboo 5.12

      Steps to Reproduce

      1. Generate a JUnit test result where the name is empty. For example:

      <testsuite name="BigTests" tests="4" assertions="4" failures="1" errors="0" time="0.069964">
      <testcase ...
      </testuite>
      <testsuite name="" tests="4" assertions="4" failures="1" errors="0" time="0.069964">
      <testcase ...
      </testuite>

      Desired Results

      All test suites returned, potentially labeled as "Unames Test N" for example.

      Actual Results

      Only the first one will be displayed in the UI as a failed test.

      Workaround

      Use a script task, prior to the final JUnit task, to insert a suitable unique name for any instance of testsuite name=""

            Assignee:
            Adam Slaski (Inactive)
            Reporter:
            Neil Hickey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: