Skip to content

Commit

Permalink
Fail on test failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
kno10 committed Oct 24, 2018
1 parent e5bc6f1 commit 477d5cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"/>
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/org/umlgraph/test/UmlDocTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,11 @@ private static void compareDocletOutputs(List<String> differences, File refFolde
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);
}

}

0 comments on commit 477d5cc

Please sign in to comment.