+
+
+ <target name="testclean" depends="init">
+ <delete dir="${testOutputDir}" includes="*,**/*" />
+ </target>
+
+ <target name="prepareTests" depends="init,testclean">
+ <mkdir dir="${testOutputDir}" />
+ </target>
+
+ <target name="buildTests" depends="build,buildindices,prepareTests">
+ <javac source="${javac.source}" target="${javac.target}" srcdir="${testDir}" destdir="${testOutputDir}" debug="${javac.debug}" classpathref="test.classpath" includeantruntime="false">
+ </javac>
+ </target>
+
+ <taskdef resource="testngtasks" classpath="utils/testnglibs/testng.jar" />
+
+ <target name="testng" depends="buildTests">
+ <testng outputDir="${reportDir}" haltOnFailure="false" groups="${testng-groups}" mode="testng"
+ verbose="2">
+ <classpath>
+ <pathelement location="${testOutputDir}" />
+ <path refid="test.classpath" />
+ </classpath>
+ <classfileset dir="${testOutputDir}" includes="**/*.class" />
+ </testng>
+ </target>
+