Browse Source

JAVA: Add a build target that runs a specified unit test

pull/567/head
Fredrik Roubert 14 years ago
committed by Mihaela Rosca
parent
commit
805b73ad4a
1 changed files with 15 additions and 1 deletions
  1. +15
    -1
      java/build.xml

+ 15
- 1
java/build.xml View File

@ -172,10 +172,24 @@
</junitreport>
</target>
<target name="testname" unless="test">
<fail message="You must run this target with -Dtest=TestName"/>
</target>
<target name="test" depends="test-jar, testname">
<junit printsummary="withOutAndErr">
<classpath refid="test.classpath"/>
<formatter type="plain" usefile="false"/>
<batchtest fork="no">
<fileset dir="${libphonenumber.test.dir}" includes="**/*${test}.java"/>
<fileset dir="${geocoder.test.dir}" includes="**/*${test}.java"/>
</batchtest>
</junit>
</target>
<target name="clean" description="Remove generated files.">
<delete dir="${build.dir}"/>
</target>
<target name="clean-build" depends="clean,jar"/>
</project>

Loading…
Cancel
Save