Community
Participate
Working Groups
Ant's <junit> and <junitreport> tasks flatten the test suite tree into one <testsuite> that contains all test results like this: <testcase name="testName" classname="pack.TestClassname" time="0.0"></testcase> When our TestRunHandler imports such an XML file, it just recreates the same structure with a test suite and a flat list of tests. Since the 'classname' attribute contains more structuring information, we should detect that we import an Ant-style flat file and recreate intermediate test suite elements based on the 'classname' (create a new suite whenever the classname value is not the same a the previous testcase's classname). For Eclipse-style XML files, nothing should be changed.
For the missing information in <junitreport>-generated HTML, see https://issues.apache.org/bugzilla/show_bug.cgi?id=48529 and the bugs linked via "See Also".
Created attachment 249798 [details] Fix v1 A first fix. Misses summing-up of testcase execution times into the recovered testsuites. Didn't get much testing, but works fine for xml files produced by the Eclipse build.