The count and list of tests parsed from XML files is incorrect if nested classes are used as test base.

XMLWordPrintable

    • Severity 3 - Minor

      When JUnit tests are inside nested static public classes (perfectly legitimate), the output XMLs are not parsed correctly. So, for the following input:

        <testcase time="0.001" classname="com.carrotsearch.bugsinjira.SuiteAggregatorTest$Test1" name="method1"/>
        <testcase time="0" classname="com.carrotsearch.bugsinjira.SuiteAggregatorTest$Test2" name="method1"/>
      

      Bamboo shows only 1 test case on SuiteAggregatorTest named "method1". Code to demonstrate the bug at github:
      https://github.com/dweiss/jira-bugs

      Screenshot from an example execution attached.

        1. CropperCapture[1].png
          12 kB
          Dawid Weiss

            Assignee:
            Alexey Chystoprudov
            Reporter:
            Dawid Weiss
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: