-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.test.xml
36 lines (30 loc) · 1.3 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
<?xml version="1.0"?>
<project name="Report4s Test" default="main" basedir=".">
<property name="build.dir" location="bin" />
<property name="test.dir" location="test" />
<property name="jar.dir" location="jar" />
<property name="lib.dir" location="lib" />
<property name="logs.dir" location="logs" />
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar" />
<fileset dir="${jar.dir}" includes="**/*.jar" />
<pathelement location="${build.dir}" />
</path>
<!-- Compile the test java code -->
<target name="compile">
<delete dir="${build.dir}" quiet="true" />
<mkdir dir="${build.dir}" />
<javac srcdir="${test.dir}" destdir="${build.dir}" classpathref="classpath" debug="true" includeantruntime="false" />
</target>
<taskdef resource="testngtasks" classpathref="classpath" />
<!-- Execute the tests -->
<target name="test" depends="compile">
<description>Tests Execution</description>
<delete dir="${logs.dir}" quiet="true" />
<mkdir dir="${logs.dir}" />
<testng classpathref="classpath" useDefaultListeners="false">
<xmlfileset file="testng.xml" />
</testng>
</target>
<target name="main" depends="test" />
</project>