Krysalis AntWorks
 
  Font size:      
 

junit.antlet

PDF
PDF

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.

Main Targets

junit.test
Description:Perform jUnit tests. 
Comment:= Adds the sysproperty elements in properties.xml to the properties. Compiles the source code and the jUnit test source code. Performs jUnit tests. Please note that this Antwork uses build.compiler.XXX properties that were set by the properties.xml of the java Antwork. = 

junit.report
Description:Performs jUnit tests and generates reports 
Comment:= Results can be found in ${junit-antlet:docs.dir} = 

junit.clean
Description:Clean up for this antlet. 
Comment:= Removes all directories that were built by this Antwork = 

Helper Targets

Internal Targets

-junit.init
Description:Sets the properties for this antlet 
Comment:' Sets the properties for this antlet ' 

-junit.getjar
Description: 
Comment: 

-junit.setup
Description: 
Comment:Initialise jUnit environment 

-junit.failsafe-test
Description: 
Comment:Turn off halt-on-failure to perform jUnit tests without failing. Important to enable generating a report on the failed tests 

Internal Properties

junit-antlet:build.dir
Description:${project.build.dir}/junit 
Comment: 

junit-antlet:docs.dir
Description:${forrest.antlet.ctxt.dir}/content/junit 
Comment: 

junit-antlet:work.dir
Description:${work.dir}/junit 
Comment: 

junit-antlet:junitjar
Description:junit-3.8.1.jar 
Comment: 

junit-antlet:repository
Description:http://www.ibiblio.org/maven/junit/jars/ 
Comment: 

junit.test.haltonfailure
Description:yes 
Comment: 

testcase
Description: 
Comment:Name of the testcase that will be performed. If omitted all testcasses will be performed. You can set this property in (user-)properties.xml example: <testcase>test.CompanyTest</testcase> 

junit-antlet:test.transform.src
Description:${junit-antlet:dir}/resources/dummy.xml 
Comment: 

junit.test.haltonfailure
Description:no 
Comment: 

by Antlet Documentation



Valid HTML 4.01!Valid CSS!