Showing posts with label Ant. Show all posts
Showing posts with label Ant. Show all posts

Wednesday, October 16, 2013

Parse JUnit XML reports and output them in HTML

Just add following to ant's task:

<junitreport todir="build/reports">
    <fileset dir="build/reports">
        <include name="TEST-*.xml"/>
    </fileset>
    <report format="frames" todir="build/reports/html"/>
</junitreport>


Auto build project with ant in Eclipse

Who needs Eclipse if there is a shell?

In Eclipse, go to Project's properties and add a new builder of type ant.

On tab Main provide:
  • Build file
  • Base Directory
  • Desired arguments that will be passed to ant ( -Dproperty=value style)

On tab Targets provide ant tasks for targets Auto Build, After a Clean.

Now you can just change sources and save the source file, 
Eclipse will execute "Auto Build" target right away.