Test¶
Description¶
Test task is used to run all unit tests. The task will fail if a test does not pass.
Warning
This task requires that the installation of Python and that it can be called from the command line.
Warning
This task requires that the installation of the Python’s package nose.
Parameters¶
Attribute | Description | Required |
---|---|---|
dir | Directory containing the distribution source code. | yes |
xmlFile | XML file to store the tests results. | no |
Examples¶
To run all tests in a directory:
<test dir="${path.to.package}" />
To run all tests and save the output in a XML file.
<test dir=”${path.to.package}” xmlFile=”${path.to.xml}” />