Postpone test failues, to first generate the pngs

This commit is contained in:
Erich Schubert 2018-10-27 14:04:13 +02:00
parent f1be5aaee8
commit 1e52483a86
1 changed files with 26 additions and 18 deletions

View File

@ -127,14 +127,15 @@ class Version { public static String VERSION = "${VERSION}";}
<target name="test" depends="compile,testcompile"
description="run the regression tests" >
<java classname="org.umlgraph.test.BasicTest" fork="true" failonerror="true">
<!-- postpone failures, so we get to see the pngs -->
<java classname="org.umlgraph.test.BasicTest" fork="true" resultproperty="BasicTest.exit">
<classpath>
<pathelement location="${env.JAVA_HOME}/lib/tools.jar"/>
<pathelement location="${build}"/>
<pathelement location="${lib}/UmlGraph.jar"/>
</classpath>
</java>
<java classname="org.umlgraph.test.UmlDocTest" fork="true" failonerror="true">
<java classname="org.umlgraph.test.UmlDocTest" fork="true" resultproperty="UmlDocTest.exit">
<classpath>
<pathelement location="${env.JAVA_HOME}/lib/tools.jar"/>
<pathelement location="${build}"/>
@ -157,6 +158,13 @@ class Version { public static String VERSION = "${VERSION}";}
<fileset dir="${testref}" includes="*.dot"/>
<mapper type="glob" from="*.dot" to="*.png"/>
</apply>
<!-- postponed failure, so we get to see the pngs -->
<fail message="BasicTest failed">
<condition><not><equals arg1="0" arg2="${BasicTest.exit}"/></not></condition>
</fail>
<fail message="UmlDocTest failed">
<condition><not><equals arg1="0" arg2="${UmlDocTest.exit}"/></not></condition>
</fail>
</target>
<target name="javadocs" depends="compile">