The build.xml has a test and a build target. The test target obviously depends on the build target.
How can I run the test target on
Personally I've found the dependency stuff in Ant to get in the way more than helping. I usually set up two sets of targets - ones which actually do stuff (with no dependencies) and then targets which just have dependencies. That way you can easily run a single target, and you can also easily run the whole suite etc. This fits in with practical (rather than ideological) uses in my view.