-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.test.xml
50 lines (44 loc) · 1.79 KB
/
build.test.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?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>