Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-10153

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

XMLWordPrintable

      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.

              achystoprudov Alexey Chystoprudov
              6492bb6c2d23 Dawid Weiss
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: