Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (44 sloc) 1.79 KB
<?xml version="1.0" encoding="UTF-8"?>
<!--
** @author Matthias L. Jugel
** @version $Id$
-->
<project basedir="." default="test" name="SnipSnap.test">
<description>
Execute Tests for SnipSnap.
</description>
<property file="conf/build.properties"/>
<target name="prepare-tests" depends="snipsnap-war, jar-server, compile-test">
<mkdir dir="${dir.out}/test/org/snipsnap/config"/>
<copy file="conf/snipsnap.conf" tofile="./cls/test/conf/snipsnap.conf"/>
<copy file="src/org/snipsnap/config/defaults.conf" tofile="${dir.out}/test/org/snipsnap/config/defaults.conf"/>
<copy file="src/org/snipsnap/config/globals.conf" tofile="${dir.out}/test/org/snipsnap/config/globals.conf"/>
<copy file="src/org/snipsnap/config/transpose.map" tofile="${dir.out}/test/org/snipsnap/config/transpose.map"/>
<copy todir="${dir.out}/test">
<fileset dir="${dir.src}/apps/default" includes="**.properties"/>
</copy>
</target>
<target name="test" depends="prepare-tests">
<junit printsummary="true">
<formatter usefile="false" type="plain"/>
<test name="org.snipsnap.test.AllTests"/>
<classpath>
<pathelement location="${dir.out}/test"/>
<pathelement location="${dir.out}/webapp/WEB-INF/classes"/>
<path refid="all.classpath"/>
<path refid="snipsnap.test"/>
</classpath>
</junit>
</target>
<target name="test-complex" depends="snipsnap-war, jar-server, prepare-tests, compile-test">
<junit printsummary="true">
<formatter usefile="false" type="plain"/>
<test name="org.snipsnap.test.AllComplexTests"/>
<classpath>
<pathelement location="${dir.out}/test"/>
<pathelement location="${dir.out}"/>
<path refid="all.classpath"/>
</classpath>
</junit>
</target>
</project>