标签:des style http color java io for 问题
这个问题实际上很简单,但是之前也让我迷惑了一下。如果像我之前这篇日志里写的,如果在后面加上junitreport:
<junitreport> <fileset dir="build/testoutput" includes="*.xml"/> <report todir="build/testoutput"/> </junitreport>
<target name="test"
depends="compile-tests"
description="Compile and execute the JUnit tests.">
<mkdir dir="build/testoutput"/>
<junit printsummary="on" fork="${test.fork}"
forkmode="once" showoutput="true"
failureproperty="junit.failure">
<jvmarg value="-XX:-UseSplitVerifier"/>
<classpath refid="allclasspath.path" />
<classpath>
<pathelement location="${build.dir}/test" />
</classpath>
<jvmarg value="-javaagent:lib\aspectjweaver-1.6.11.jar"/>
<batchtest todir="build/testoutput">
<formatter type="brief" usefile="false" />
<formatter type="xml" />
<fileset dir="${build.dir}/test">
<include name="**/${test.class}.class" />
</fileset>
</batchtest>
</junit>
<junitreport>
<fileset dir="build/testoutput" includes="*.xml"/>
<report todir="build/testoutput"/>
</junitreport>
<fail if="junit.failure"
message="Unit tests failed. See build/testoutput/index.html" />
</target>JUnit+Ant什么时候可以生成HTML形式的report,布布扣,bubuko.com
JUnit+Ant什么时候可以生成HTML形式的report
标签:des style http color java io for 问题
原文地址:http://blog.csdn.net/qysh123/article/details/38347195