forked from CompEvol/beast2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.xml
50 lines (43 loc) · 1.57 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
<!-- 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 2.
Also used by Hudson BEAST_2 project.
JUnit test is available for this build.
</description>
<!-- set global properties for this build -->
<property name="src" location="src" />
<property name="build" location="build" />
<property name="lib" location="lib" />
<property name="doc" location="doc" />
<property name="dist" location="${build}/dist" />
<property name="main_class_BEAST" value="beast.app.beastapp.BeastMain" />
<property name="report" value="${build}/junitreport" />
<path id="classpath">
<fileset dir="${lib}" includes="**/*.jar" />
</path>
<!-- JUnit test -->
<target name="test">
<mkdir dir="${report}" />
<junit printsummary="yes"> <!--showoutput='yes'-->
<classpath>
<path refid="classpath" />
<path location="${build}" />
</classpath>
<formatter type="xml" />
<batchtest fork="yes" todir="${report}">
<fileset dir="${src}">
<include name="test/beast/beast2vs1/**/*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>