Wednesday, April 27, 2011

Sample Ant build file to run TestNG

Ref: http://openwritings.net/public/testng/ant-build-file-testng 
 
 version="1.0" encoding="UTF-8"?>

 basedir="." default="runTestNG" name="Sample of Ant file for TestNG">
 
  
   name="testng" classname="org.testng.TestNGAntTask">
    >
       location="lib/testng/testng-5.14.7.jar"/>
    >
  >
 
  
   name="testng.output.dir" value="testng_output"/>
 
  
   id="classes">
      location="bin"/>
  >
 
  
   name="runTestNG">
 
     dir="${testng.output.dir}"/>
 
     outputdir="${testng.output.dir}" classpathref="classes"> 
       dir="." includes="testng.xml"/> 
    >
 
  >
 
>

No comments: