Bug 64952 - junit4 Parameterized not reported
Summary: junit4 Parameterized not reported
Alias: None
Product: Ant
Classification: Unclassified
Component: Optional Tasks (show other bugs)
Version: 1.10.9
Hardware: PC All
: P2 normal (vote)
Target Milestone: 1.10.10
Assignee: Ant Notifications List
Depends on:
Reported: 2020-12-02 12:39 UTC by tg
Modified: 2021-01-17 04:34 UTC (History)
0 users

Example for a bad report (155.52 KB, text/xml)
2020-12-02 12:39 UTC, tg

Note You need to log in before you can comment on or make changes to this bug.
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">
                <listener type="legacy-xml"  />

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

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.