I tried to use the jsfunitwar to add test classes to the war.
<jsfunitwar srcfile="build/foo.war"
destfile="build/foo-jsfunit.war">
<TestRunner/>
<lib file="build/test.jar" />
<classes dir="build/test-classes" includes="**/*.class"/>
</jsfunitwar>
the foo-jsfunit.war is created successfully, but it did not contain any test classes, nor test.jar which had been built in previous step.
thanks for help.
Dave
ignore this. my mistake. it is working.