Mercurial > hg > blitz_stable
changeset 3:47767be3a265
Add a little bit of prep for some automated unit testing.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Thu, 26 Mar 2009 18:01:14 +0000 |
parents | 8914f447c864 |
children | d3ec5ebc3dba |
files | build.xml thirdpartylib/junit-4.5.jar |
diffstat | 2 files changed, 15 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/build.xml Sun Mar 22 15:02:11 2009 +0000 +++ b/build.xml Thu Mar 26 18:01:14 2009 +0000 @@ -23,6 +23,7 @@ <property name="release" location="release"/> <property name="config" location="config"/> <property name="examples" location="examples"/> + <property name="reports.tests" location="reports/tests"/> <taskdef name="classdepandjar" classname="org.jini.project.example.jade.tools.ClassDepAndJarTask" @@ -72,6 +73,7 @@ <pathelement location="${otherlib}/slf4j-api-1.2.jar"/> <pathelement location="${otherlib}/slf4j-jdk14-1.2.jar"/> <pathelement location="${otherlib}/serviceui-1.1.jar"/> + <pathelement location="${otherlib}/junit-4.5.jar"/> <pathelement location="${bdb}"/> </path> @@ -104,6 +106,19 @@ </copy> </target> + <target name="test" depends="compile"> + <junit printsummary="on" haltonfailure="off" showoutput="true" filtertrace="off"> + <classpath refid="allclasses"/> + <batchtest fork="yes" todir="${reports.tests}"> + <formatter type="plain" usefile="true"> + </formatter> + <fileset dir="${testsrc}"> + <include name="**/junit/**/*Test*.java"/> + </fileset> + </batchtest> + </junit> + </target> + <target name="installer" depends="jars"> <!-- Installer rule, not ready yet - sorting out source code @@ -724,16 +739,6 @@ </java> </target> - <target name="thrash" depends="compile" - description="Thrash the space some and see if it breaks"> - <java classname="org.dancres.blitz.test.ThrashTest" - classpathref="allclasses"> - <arg value="5"/> - <arg value="4000"/> - <arg value="100"/> - </java> - </target> - <target name="load" depends="compile" description="test basic recovery behaviour - step I"> <java classname="org.dancres.blitz.test.Load"