File: build-sample.xml

package info (click to toggle)
testng 5.11%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 8,308 kB
  • ctags: 11,519
  • sloc: java: 48,416; xml: 3,234; makefile: 54; sh: 13
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>