<target name="test" depends="compile-tests"> <mkdir dir="${testreportdir}"></mkdir> <junit dir="./" printSummary="yes"> <batchtest todir="${testreportdir}"> <fileset dir="src/test/java"> <include name="**/Test*.java"></include> </fileset> </batchtest> </junit> </target>