You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2020/12/02 12:39:59 UTC

[Bug 64952] New: junit4 Parameterized not reported

https://bz.apache.org/bugzilla/show_bug.cgi?id=64952

            Bug ID: 64952
           Summary: junit4 Parameterized not reported
           Product: Ant
           Version: 1.10.9
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optional Tasks
          Assignee: notifications@ant.apache.org
          Reporter: tg@freigmbh.de
  Target Milestone: ---

Created attachment 37584
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37584&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 64952] junit4 Parameterized not reported

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64952

Jaikiran Pai <ja...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |1.10.10
         Resolution|---                         |FIXED

--- Comment #1 from Jaikiran Pai <ja...@apache.org> ---
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/.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 64952] junit4 Parameterized not reported

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64952

--- Comment #2 from Jaikiran Pai <ja...@apache.org> ---
> 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.

-- 
You are receiving this mail because:
You are the assignee for the bug.