<
target
name
="test"
>
<
junit
printsummary
="on"
failureproperty
="testsFailed"
>
<
classpath
refid
="classpath"
/>
<
formatter
type
="xml"
/>
<
batchtest
todir
="${basedir}/doc/junitReport"
>
<
fileset
dir
="${basedir}/web/WEB-INF/classes"
includes
="**/*Test.class"
/>
</
batchtest
>
</
junit
>
<
junitreport
todir
="${basedir}/doc/junitReport"
>
<
fileset
dir
="${basedir}/doc/junitReport"
>
<
include
name
="TEST-*.xml"
/>
</
fileset
>
<
report
todir
="${basedir}/doc/junitReport/html"
/>
</
junitreport
>
</
target
>
1,命名TEST-*.xml大小写有别
2,有可能须要xalan放到eclipse的ant/lib下(不确定)
3, 和cruisecontrol结合使用时
junitreport就不要了,否则会生成双分的测试结果
posted on 2007-02-12 14:09
liunix 阅读(331)
评论(0) 编辑 收藏