读书人

ant实施junit时的classpath设置,环境变

发布时间: 2012-10-08 19:54:56 作者: rapoo

ant执行junit时的classpath设置,环境变量设置

?

Ant执行junit时为什么需要classpath设置,环境变量设置

<junit fork="yes" showoutput="yes"maxmemory="1024m" dir="${basedir}" failureProperty="test.failed">

<classpath location="${instrumented.dir}" />

<classpath refid="junit-master-classpath" />

<formatter type="xml" usefile="true" />

<test name="${testcase}" todir="${reports.junit}" if="testcase"/>

<batchtest todir="${reports.junit}" unless="testcase">

????????????? <fileset dir="${src.test.dir}">

????????????????? <include name="**/*Test.java" />

????????????? </fileset>

?????????? </batchtest>

<junit fork="yes" showoutput="yes"maxmemory="1024m" dir="${basedir}" failureProperty="test.failed">

<jvmarg value="-Dlog.home=C:/log" />

<test name="${testcase}" todir="${reports.junit}" if="testcase"/>

<batchtest todir="${reports.junit}" unless="testcase">

????????????? <fileset dir="${src.test.dir}">

????????????????? <include name="**/*Test.java" />

????????????? </fileset>

?????????? </batchtest>

</junit>

?

读书人网 >编程

热点推荐