File: build-sample.xml

package info (click to toggle)
testng 6.9.12-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,372 kB
  • sloc: java: 53,852; javascript: 7,513; xml: 2,720; sh: 199; php: 35; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 905 bytes parent folder | download | duplicates (7)
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
<project name="testng" default="run" basedir=".">

	<property name="testng.home" value="c:/java/testng" />
    <property name="lib.dir" value="${testng.home}/lib"/>
    <property name="testng.jar" value="${testng.home}/testng-2.5-jdk15.jar" />

	<path id="run.cp">
		<!--
      <path refid="compile.cp"/>
-->
		<pathelement location="build" />
		<pathelement location="${lib.dir}/qdox-1.5.jar"/>
		<pathelement location="${java.home}/../lib/tools.jar"/>
	</path>

	<target name="run" description="Run tests" >
		<echo>Defining task from ${testng.jar}</echo>
		<taskdef name="testng"
              classname="org.testng.TestNGAntTask"
              classpath="${testng.jar}" />

		<testng classpathref="run.cp"
        dumpcommand="true" verbose="9" outputdir="test-outputs">
			<classfileset dir="build">
				<include name="**/justin/*Test*.class" />
			</classfileset>
		</testng>
	</target>

</project>