Description
Runs unit tests for a Nice package.
All arguments to the NiceUnit task have to be placed as attributes in the niceunit xml-element.
Parameters
Attribute |
Description |
Required |
package |
The Nice package to test. |
Yes |
classpath |
Search path for compiled packages and libraries. |
No |
classpath
NiceUnit 's classpath attribute is a PATH like structure and can also be set via a nested
classpath element. This is very reasonable if you want to make your build script's pathes platform
independent.
Example
<niceunit package="test" >
<classpath>
<pathelement location="\test.jar"/>
<pathelement path="${java.class.path}"/>
</classpath>
</niceunit>
It is possible to use the classpath attribute together with the
classpath nested tag. In this case the result is a concatenated path.
It is highly recommended to use the nested version!
Examples
<taskdef name="niceunit" classname="nice.tools.ant.NiceUnit"/>
<target name="nice-tests">
<niceunit package="test" />
</target>
author: Daniel Bonniot |