Bug 409831 - [JUnit] Importer for Ant's <junit> and <junitreport> test results should group by classname
Summary: [JUnit] Importer for Ant's <junit> and <junitreport> test results should grou...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: fix candidate
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-04 07:06 EDT by Markus Keller CLA
Modified: 2015-01-08 12:55 EST (History)
1 user (show)

See Also:


Attachments
Fix v1 (2.81 KB, patch)
2015-01-08 12:55 EST, Markus Keller CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2013-06-04 07:06:16 EDT
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.
Comment 1 Markus Keller CLA 2013-06-04 07:24:08 EDT
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".
Comment 2 Markus Keller CLA 2015-01-08 12:55:18 EST
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.