0

我发现了这个代码片段:

  <target name="test">
   <junit fork="yes" haltonfailure="yes">
    <test name="${classes}" />
    <formatter type="plain" usefile="false" />
    <classpath refid="test.classpath" />
   </junit>
 </target>

我是否需要修改它以首先编译测试类,而不是直接运行这个目标?

4

1 回答 1

0

jUnit 可以运行 .class 或 .java 文件。您不必在运行此测试之前进行编译

于 2011-02-25T18:47:05.247 回答