antlets/junit/src xbuild.xml,1.7,1.8
[email protected] Thu, 11 Mar 2004 07:33:36 -0800
| Newsgroups | gmane.comp.krysalis.metamorphosis.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/metamorphosis/antlets/junit/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21041/junit/src
Modified Files:
xbuild.xml
Log Message:
added and changed comments
Index: xbuild.xml
===================================================================
RCS file: /cvsroot/metamorphosis/antlets/junit/src/xbuild.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** xbuild.xml 6 Mar 2004 10:04:30 -0000 1.7
--- xbuild.xml 11 Mar 2004 15:33:34 -0000 1.8
***************
*** 2,6 ****
<project default="junit.test" name="junit.antlet">
<description>
! Perform the unit tests using JUnit, and generates reports.
</description>
<import file="usage.xml"/>
--- 2,8 ----
<project default="junit.test" name="junit.antlet">
<description>
! Performs the unit tests using JUnit, and generates reports.
! This antwork needs a jar from the jUnit project. It is not downloaded automatically
! but it's presence in the ANT_HOME/lib directory will be checked.
</description>
<import file="usage.xml"/>
***************
*** 29,35 ****
! <!-- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' -->
! <!-- Sets the properties for this antlet -->
! <!-- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' -->
<target name="-junit.init" description="Sets the properties for this antlet">
<dirname property="junit-antlet:dir" file="${ant.file.junit.antlet}"/>
--- 31,37 ----
! <!-- '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
! Sets the properties for this antlet
! ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' -->
<target name="-junit.init" description="Sets the properties for this antlet">
<dirname property="junit-antlet:dir" file="${ant.file.junit.antlet}"/>
***************
*** 39,48 ****
</target>
! <!-- =================================================================== -->
! <!-- Add the sysproperty elements in properties.xml to the properties. -->
! <!-- Compile the source code -->
! <!-- Compile the jUnit test source code -->
! <!-- Perform jUnit tests. -->
! <!-- =================================================================== -->
<target name="junit.test"
description="Perform jUnit tests."
--- 41,51 ----
</target>
! <!-- ===================================================================
! Adds the sysproperty elements in properties.xml to the properties.
! Compiles the source code and the jUnit test source code.
! Performs jUnit tests.<BR/>
! Please note that this Antwork uses build.compiler.XXX properties
! that were set by the properties.xml of the java Antwork.
! =================================================================== -->
<target name="junit.test"
description="Perform jUnit tests."
***************
*** 52,55 ****
--- 55,62 ----
<echo message="Testing..."/>
<property name="junit.test.haltonfailure" value="yes"/>
+ <!-- Name of the testcase that will be performed.
+ If omitted all testcasses will be performed. <BR/>
+ You can set this property in (user-)properties.xml<BR/>
+ example: <testcase>test.CompanyTest</testcase> -->
<property name="testcase" value=""/>
***************
*** 86,92 ****
! <!-- =================================================================== -->
! <!-- Performs jUnit tests and generates reports -->
! <!-- =================================================================== -->
<target name="junit.report" description="Performs jUnit tests and generates reports"
depends="-junit.failsafe-test, junit.test">
--- 93,99 ----
! <!-- ===================================================================
! Results can be found in ${junit-antlet:docs.dir}
! =================================================================== -->
<target name="junit.report" description="Performs jUnit tests and generates reports"
depends="-junit.failsafe-test, junit.test">
***************
*** 100,109 ****
</target>
! <!-- =================================================================== -->
! <!-- Clean up for this antlet. -->
! <!-- =================================================================== -->
<target name="junit.clean" description="Clean up for this antlet."
depends="-junit.init">
! <!-- clean up the directories -->
<delete dir="${junit-antlet:docs.dir}"/>
<delete dir="${junit-antlet:build.dir}"/>
--- 107,116 ----
</target>
! <!-- ===================================================================
! Removes all directories that were built by this Antwork
! =================================================================== -->
<target name="junit.clean" description="Clean up for this antlet."
depends="-junit.init">
! <!-- clean up the directories -->
<delete dir="${junit-antlet:docs.dir}"/>
<delete dir="${junit-antlet:build.dir}"/>
***************
*** 113,119 ****
</target>
! <!-- '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' -->
! <!-- Initialise jUnit environment -->
! <!-- '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' -->
<target name="-junit.setup" depends="-junit.init">
<mkdir dir="${junit-antlet:docs.dir}"/>
--- 120,126 ----
</target>
! <!-- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
! Initialise jUnit environment
! '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' -->
<target name="-junit.setup" depends="-junit.init">
<mkdir dir="${junit-antlet:docs.dir}"/>
***************
*** 124,131 ****
</target>
! <!-- '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' -->
! <!-- Turn off halt-on-failure to perform jUnit tests without failing. -->
! <!-- Important to enable generating a report on the failed tests -->
! <!-- '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' -->
<target name="-junit.failsafe-test" >
<property name="junit.test.haltonfailure" value="no"/>
--- 131,138 ----
</target>
! <!-- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
! Turn off halt-on-failure to perform jUnit tests without failing.
! Important to enable generating a report on the failed tests
! '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' -->
<target name="-junit.failsafe-test" >
<property name="junit.test.haltonfailure" value="no"/>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click