From: <la...@us...> - 2009-07-07 18:05:10
|
Revision: 112 http://tmapi.svn.sourceforge.net/tmapi/?rev=112&view=rev Author: larsga Date: 2009-07-07 18:04:58 +0000 (Tue, 07 Jul 2009) Log Message: ----------- Added the runtests target for running the tests. Modified Paths: -------------- trunk/build.xml Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2009-07-04 17:52:31 UTC (rev 111) +++ trunk/build.xml 2009-07-07 18:04:58 UTC (rev 112) @@ -36,6 +36,7 @@ <echo message=" test.jar Creates the test suite jar (.index and .core)"/> <echo message=" doc Creates the API documentation"/> <echo message=" release Creates the jar and a distributable file"/> + <echo message=" runtests Runs all the JUnit test cases"/> </target> <target name="init"> @@ -185,6 +186,35 @@ </target> <!-- =================================================================== --> + <!-- Runs all the tests --> + <!-- =================================================================== --> + <target name="runtests" depends="init"> + <junit printsummary="true" showoutput="false" + errorProperty="test.failed" failureProperty="test.failed" + fork="true"> + <classpath> + <pathelement location="${dir.build.classes}"/> + <pathelement location="${dir.build.tests}"/> + </classpath> + <formatter type="brief" usefile="false"/> + <test name="org.tmapi.core.AllCoreTests"/> + </junit> + <fail message="Tests failed. Check test output." if="test.failed"/> + + <junit printsummary="true" showoutput="false" + errorProperty="test.failed" failureProperty="test.failed" + fork="true"> + <classpath> + <pathelement location="${dir.build.classes}"/> + <pathelement location="${dir.build.tests}"/> + </classpath> + <formatter type="brief" usefile="false"/> + <test name="org.tmapi.index.AllIndexTests"/> + </junit> + <fail message="Tests failed. Check test output." if="test.failed"/> + </target> + + <!-- =================================================================== --> <!-- Prepares a distribution --> <!-- =================================================================== --> <target name="dist" depends="jar, test.jar, doc"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |