[junit] TEST se.testsuit.AllTests FAILED
我想它应该是类吧?
这个se.testsuit.AllTests在jb下已经编译过了,也通过测试了,现在想在ant下调试一下!

解决方案 »

  1.   

    <junit>
      <test name="se.testsuit.AllTests" haltonfailure="no" outfile="result"/>
     </junit>
    这样的信息不全啊!兄弟!
    一般来说,应该有个value值来指定具体的位置,可是你这里看不出来!
    你可以找点ANT的书来看看,把这个target的任务补全来!
      

  2.   

    我的脚本中关于junit的一部分。
    <target name="runTest" depends="init">
       <delete>
        <fileset dir="${testReport}" includes="**/*.*"/>
      </delete>
     
       <junit fork="on">
       <classpath refid="libClassPath"/>
       <classpath>
        <pathelement location="${appPath}/WEB-INF/classes"/>
       </classpath>
       <formatter type="xml"/>
       <!--<test name="fixturetutorial.TestDataModule1" haltonfailure="no" outfile="result"/>-->
       <batchtest fork="yes" todir="${testReport}">
         <fileset dir="${appPath}/WEB-INF/classes">
           <include name="**/PortalTestAll.class"/>
         </fileset>
       </batchtest>
       </junit>
     
       <junitreport todir="${testReport}">
       <fileset dir="${testReport}">
         <include name="TEST-*.xml"/>
       </fileset>
       <report format="frames" todir="${testReport}"/>
       </junitreport>
    </target>
      

  3.   

    我认为得把单个测试的类放在classpath中
       <classpath>
        <pathelement location="${appPath}/WEB-INF/classes"/>
        <pathelement location="......./AllTests.class">
        <!--或者你这个class所在的jar包-->
       </classpath>