Fail on test failures.

This commit is contained in:
Erich Schubert 2018-10-24 16:34:30 +02:00
parent e5bc6f1f8f
commit 477d5cc58a
2 changed files with 4 additions and 3 deletions

View File

@ -119,14 +119,14 @@ 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">
<java classname="org.umlgraph.test.BasicTest" fork="true" failonerror="true">
<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">
<java classname="org.umlgraph.test.UmlDocTest" fork="true" failonerror="true">
<classpath>
<pathelement location="${env.JAVA_HOME}/lib/tools.jar"/>
<pathelement location="${build}"/>

View File

@ -148,10 +148,11 @@ public class UmlDocTest {
private static void runDoclet(String[] options) {
pw.print("Run javadoc -doclet " + doclet);
for (String o : options)
pw.print(o + " ");
pw.print(" " + o);
pw.println();
com.sun.tools.javadoc.Main.execute("UMLDoc test", pw, pw, pw,
doclet, options);
System.exit(0);
}
}