Bug 64952

Summary: junit4 Parameterized not reported
Product: Ant Reporter: tg
Component: Optional TasksAssignee: Ant Notifications List <notifications>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 1.10.9   
Target Milestone: 1.10.10   
Hardware: PC   
OS: All   
Attachments: Example for a bad report

Description tg 2020-12-02 12:39:59 UTC
Created attachment 37584 [details]
Example for a bad report

junitlauncher build task using a legacy xml listener
 <junitlauncher haltonfailure="true" printsummary="off">
            <classpath refid="myclasspath"/>
            <testclasses outputdir="output/junit"   >
				
                <fileset dir="theStuff">
                  
                </fileset>
                <listener type="legacy-xml"  />
               </testclasses>
          </junitlauncher>  


And a Testclass using @Paramterized (junit4). Will produce an output xml wich does not include individual testcase. (The total number of tests is correct, yet the "testcase" elements are missing)

My changes in the let the legacy-xml listener print testcases elements
https://github.com/apache/ant/pull/125

This is most likely the same issue as 58438.
Comment 1 Jaikiran Pai 2021-01-17 04:28:17 UTC
Thank you for raising this issue as well as submitting a fix. The PR containing this fix has now been merged https://github.com/apache/ant/pull/125/.
Comment 2 Jaikiran Pai 2021-01-17 04:34:04 UTC
> This is most likely the same issue as 58438.

That one looks unrelated. It was reported back in 2015, when the junitlauncher task didn't exist. It looks like that other issue is related to the junit task instead.