sebb        2003/12/06 12:40:54

  Modified:    .        build.xml
  Log:
  Add junit target for running test cases individually
  
  Revision  Changes    Path
  1.145     +21 -1     jakarta-jmeter/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/build.xml,v
  retrieving revision 1.144
  retrieving revision 1.145
  diff -u -r1.144 -r1.145
  --- build.xml 5 Dec 2003 19:42:29 -0000       1.144
  +++ build.xml 6 Dec 2003 20:40:54 -0000       1.145
  @@ -887,6 +887,26 @@
       </java>
     </target>
   
  +<!--
  +    In order to run JUnit, both junit.jar and optional.jar need to be on the Ant 
classpath
  +    optional.jar is normally found in ANT_HOME/lib
  +-->
  +  <target name="junit"  description="Run individual JUnit test">
  +  <property name="test.case" value="org.apache.jmeter.junit.JMeterTest"/>
  +  <junit fork="true"
  +   dir="${basedir}/bin"
  +   showoutput="true"
  +   printsummary="withOutAndErr">
  +  <formatter type="brief" usefile="no"/>
  +      <classpath>
  +        <path refid="classpath"/>
  +        <fileset dir="${dest.jar}" includes="*.jar"/>
  +        <fileset dir="${lib.opt}" includes="optional.jar"/>
  +      </classpath>
  +  <test name="${test.case}"/>
  +  </junit>
  +  </target>
  +
     <!-- Run the HTML Parser unit tests -->
     <target name="testparser" description="run the JUnit tests">
       <echo message="**********************************"/>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to