【问题标题】:Ant JUnit Compile QAnt JUnit 编译 Q
【发布时间】:2010-12-09 22:05:26
【问题描述】:

我找到了这段代码 sn-p:

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

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

【问题讨论】:

    标签: junit3


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2010-11-11
      • 2015-08-20
      • 1970-01-01
      • 2017-05-25
      • 2013-07-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-04
      相关资源
      最近更新 更多