Mercurial > hg > mercurial
changeset 14:b5b31085de22
run-tests target added
author | Pavel.Sher |
---|---|
date | Tue, 15 Jul 2008 21:59:08 +0400 |
parents | 26505742bae5 |
children | 3539151629aa |
files | build.xml |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/build.xml Tue Jul 15 21:47:42 2008 +0400 +++ b/build.xml Tue Jul 15 21:59:08 2008 +0400 @@ -9,4 +9,21 @@ <jar destfile="${distPath}/unpacked/mercurial.jar" basedir="${mercurial.output.dir}"/> <zip basedir="${distPath}/unpacked" destfile="${distPath}/mercurial.zip" includes="**/*"/> </target> + + <taskdef name="testng" classname="org.testng.TestNGAntTask" classpath="${basedir}/mercurial-tests/lib/testng-5.7-jdk15.jar"/> + + <target name="run-tests" depends="clean, init, compile.module.mercurial-tests.production"> + + <testng haltonfailure="no" failureProperty="failure_found" listener="org.testng.reporters.TestHTMLReporter" + outputdir="${basedir}/test-output" classpathref="mercurial-tests.runtime.module.classpath" dumpcommand="true"> + + <jvmarg value="-ea"/> + + <sysproperty key="java.awt.headless" value="true"/> + + <xmlfileset dir="${basedir}/mercurial-tests/src"> + <include name="testng.xml"/> + </xmlfileset> + </testng> + </target> </project> \ No newline at end of file