I use the Ant API for creating tasks programmatically, but I have not yet found the class that create JUnit report task. in short, I want the equivalent of the code below using the Ant API:
<junitreport todir="..">
<fileset dir="..">
<include name="TEST-*.xml" />
</fileset>
<report format="frames" todir=".." />
</junitreport>
Thanks for your help.
All task definitions are declared in ant.jar!org\apache\tools\ant\taskdefs\defaults.properties
Here is the JUnit-related ones:
Here is corresponding Java code may look something like this: