• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<project name="testng" default="run" basedir=".">
2	<property name="testng.home" value="${basedir}/../" />
3    <property name="lib.dir" value="${testng.home}/3rdparty"/>
4 	<property file="../build.properties"/>
5
6	<path id="run.cp">
7		<pathelement location="../z_build" />
8		<fileset dir="${lib.dir}">
9			<include name="junit.jar"/>
10			<include name="${beanshell.jar}"/>
11			<include name="${qdox.jar}"/>
12		</fileset>
13 		<pathelement location="${java.home}/../lib/tools.jar"/>
14	</path>
15
16	<target name="run" description="Run tests" >
17		<echo>Defining task from ${basedir}/../${jdk15.testng.jar}</echo>
18		<taskdef name="testng"
19              classname="org.testng.TestNGAntTask"
20              classpath="${basedir}/../${jdk15.testng.jar}" />
21
22		<testng classpathref="run.cp"
23        dumpcommand="true" verbose="9" outputdir="test-outputs" haltonfailure="true">
24			<xmlfileset dir="${basedir}">
25				<include name="testng-single.xml" />
26			</xmlfileset>
27		</testng>
28	</target>
29
30</project>
31