ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Brutto <jbru...@revof11.com>
Subject Ant + JUnit
Date Fri, 31 Aug 2007 21:40:58 GMT
In my JUnit tests I have a series of public static methods embedded.
When I run my tests, I receive:

java.lang.Exception: No runnable methods


Instead of requesting that the classes be ignored in the filter set for
the batch run, is there any way to specify to ignore that "no runnable
methods" error?

When I run this in my IDE (Eclipse and/or IntelliJ IDEA) it works fine,
but running it via an Ant task it just doesn't work. Here is my Ant task
setup:


    <junit printsummary="${unittest.printsummary}" showoutput="${unittest.showoutput}"
           haltonfailure="${unittest.haltonfailure}"
           dir="${output.test.results.dir}"
           maxmemory="${unittest.maxmem}">
 
      <classpath>
        <fileset file="${java.home}/../lib/tools.jar"/>
        <fileset dir="${output.test.lib.dir}" includes="**/*" />
        <fileset dir="${output.test.coverage.dir}/classes" includes="**/*" />
        <fileset dir="${thirdparty.dir}" includes="**/*.jar" />
      </classpath>
 
      <sysproperty key="net.sourceforge.cobertura.datafile" file="${instrument.datafile}"
/>
 
      <formatter type="xml" />
 
      <batchtest fork="true" todir="${output.test.results.dir}">
        <fileset dir="${output.test.bin.dir}" excludes="**/ui/**" />
      </batchtest>
 
    </junit>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message