Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to referer too all junit tests in Ant batchtest
    text
    copied!<p>We are using ant to run all of our JUnitTests. Our batchtest looks like: </p> <pre><code>&lt;batchtest todir="${test.reports}"&gt; &lt;!-- First fork --&gt; &lt;fileset dir="${build.out.dir}/plugins/plugin1/test" includes="**/*Test.java" /&gt; &lt;fileset dir="${build.out.dir}/plugins/plugin2/test" includes="**/*Test.java" /&gt; &lt;fileset dir="${build.out.dir}/plugins/plugin3/test" includes="**/*Test.java" /&gt; &lt;fileset dir="${build.out.dir}/plugins/plugin4/test" includes="**/*Test.java" /&gt; &lt;fileset dir="${build.out.dir}/plugins/plugin5/test" includes="**/*Test.java" /&gt; &lt;fileset dir="${build.out.dir}/plugins/plugin6/test" includes="**/*Test.java" /&gt; &lt;fileset dir="${build.out.dir}/plugins/util/test" includes="**/*Test.java" /&gt; &lt;/batchtest&gt; </code></pre> <p>The problem with this is if somebody is adding a new plugin and forgetting to add the fileset here, the tests are not going to run. So I tried to wrote something like this: </p> <pre><code>&lt;batchtest todir="${test.reports}"&gt; &lt;!-- First fork --&gt; &lt;fileset dir="${build.out.dir}/plugins" includes="**/test/**/*Test.java" /&gt; &lt;/batchtest&gt; </code></pre> <p>but all tests are failing when running this. and I am getting </p> <pre><code>java.lang.ClassNotFoundException: build.test.com.something.something.something.something.something.something.somethngTest at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:186) </code></pre> <p>any idea? </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload