From 7ecd4e97e40a6c5c2a4e420ad328ea5eeddb8edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr> Date: Wed, 27 May 2009 16:43:32 +0000 Subject: [PATCH] - improved the failure message for tests --- build.xml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/build.xml b/build.xml index d425c4b2..d52ed3cc 100644 --- a/build.xml +++ b/build.xml @@ -3,6 +3,8 @@ <project name="align" default="compile" basedir="."> + <taskdef name="testng" classpath="lib/testng.jar" classname="org.testng.TestNGAntTask" /> + <!-- tested --> <target name="usage" depends="init"> <echo message="ant _target_ _options_"/> @@ -50,9 +52,6 @@ </fileset> </path> - <taskdef name="testng" classpathref="classpath" - classname="org.testng.TestNGAntTask" /> - </target> <!-- tested --> @@ -194,8 +193,8 @@ <!-- ling requires WordNet and takes ages initialising it --> <testng groups="noling" sourcedir="test/src" - outputDir="test/html" - haltOnFailure="true" verbose="1"> + outputDir="test/html" verbose="1" + haltOnFailure="false" failureProperty="failed"> <classpath> <path refid="classpath"/> <pathelement location="test/classes"/> @@ -203,7 +202,7 @@ <!--xmlfileset dir="${test14.dir}" includes="testng.xml"/--> <classfileset dir="test" includes="classes/**/*.class"/> </testng> - <echo message="For results: open test/html/index.html" /> + <fail if="failed" message="For results: open test/html/index.html" /> </target> <!-- tested --> -- GitLab