-
Notifications
You must be signed in to change notification settings - Fork 4
/
test.xml
57 lines (48 loc) · 1.85 KB
/
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
51
52
53
54
55
56
57
<!-- Build BEAST II. It is also used by Hudson BEAST_II project. JUnit test is available for this build. -->
<project basedir="." default="test" name="test_BEAST_2_ii">
<description>
Integration test BEAST II.
Also used by Hudson BEAST_II project.
JUnit test is available for this build.
</description>
<!-- set global properties for this build -->
<property name="srcii" location="src" />
<property name="buildii" location="build" />
<property name="libii" location="lib" />
<property name="distii" location="${buildii}/dist" />
<property name="beast2path" location="../beast2" />
<property name="srcBeast2" location="${beast2path}/src" />
<property name="beast2classpath" location="${beast2path}/build" />
<import file="${beast2path}/build.xml" />
<property name="main_class_BEAST" value="beast.app.BeastMCMC" />
<property name="report" value="${buildii}/junitreport"/>
<path id="classpath">
<pathelement path="${buildii}"/>
<fileset dir="${libii}" includes="junit-4.8.2.jar"/>
<pathelement path="${beast2classpath}"/>
</path>
<!-- JUnit test -->
<target name="test">
<mkdir dir="${report}" />
<junit printsummary="yes"> <!--showoutput='yes'-->
<classpath>
<path refid="classpath" />
<path location="${buildii}" />
</classpath>
<formatter type="xml" />
<batchtest fork="yes" todir="${report}">
<fileset dir="${srcii}">
<include name="test/beast/integration/**/*Test.java"/>
</fileset>
</batchtest>
</junit>
<echo message="JUnit test finished." />
</target>
<target name="junitreport">
<junitreport todir="${report}">
<fileset dir="${report}" includes="*.xml"/>
<report format="frames" todir="${report}"/>
</junitreport>
<echo message="JUnit test report finished." />
</target>
</project>