Browse Source

JAVA build: Changing the build file to make it more obvious when tests fail and print a message.

pull/567/head
Lara Scheidegger 14 years ago
committed by Mihaela Rosca
parent
commit
51b20a52fe
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      java/build.xml

+ 4
- 1
java/build.xml View File

@ -155,7 +155,8 @@
<target name="junit" depends="test-jar">
<mkdir dir="${report.dir}"/>
<junit printsummary="yes">
<junit printsummary="yes"
failureProperty="test.failed" errorProperty="test.failed">
<classpath refid="test.classpath"/>
<formatter type="xml"/>
<batchtest fork="no" todir="${report.dir}">
@ -165,6 +166,8 @@
<fileset dir="${geocoder.test.dir}" includes="**/*Test.java"/>
</batchtest>
</junit>
<fail message="Tests failed. Run 'ant junitreport' for more info."
if="test.failed"/>
</target>
<target name="junitreport">


Loading…
Cancel
Save