Note that there are some explanatory texts on larger screens.

plurals
  1. POCruiseControl JUnit test results show all zeroes
    text
    copied!<p>I've got JUnit hooked up with CruiseControl and unit tests are being executed &amp; logs imported, but CruiseControl shows the following output:</p> <pre><code>nz.co.picksend.core.tests.nz.co.picksend.core.dal.FilterTests Tests: 0, Failures: 0, Errors: 0, Duration: 0.0 nz.co.picksend.core.tests.nz.co.picksend.core.dal.ModelObjectRegistryTests Tests: 0, Failures: 0, Errors: 0, Duration: 0.0 nz.co.picksend.core.tests.nz.co.picksend.core.dal.ModelObjectSetTests Tests: 0, Failures: 0, Errors: 0, Duration: 0.0 nz.co.picksend.core.tests.nz.co.picksend.core.humanresources.AllHumanResourcesTests Tests: 0, Failures: 0, Errors: 0, Duration: 0.0 </code></pre> <p>(Note all zeroes)</p> <p>However, the log files that are being merged look like this:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; &lt;testsuite errors="1" failures="0" hostname="maudslay" name="nz.co.picksend.core.tests.nz.co.picksend.core.rules.MockEvalRule" tests="1" time="0.0" timestamp="2009-11-04T23:05:19"&gt; &lt;properties&gt; ... &lt;/properties&gt; &lt;error message="nz.co.picksend.core.tests.nz.co.picksend.core.rules.MockEvalRule" type="java.lang.ClassNotFoundException"&gt; java.lang.ClassNotFoundException: nz.co.picksend.core.tests.nz.co.picksend.core.rules.MockEvalRule at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) &lt;/error&gt; &lt;system-out&gt;&lt;![CDATA[]]&gt;&lt;/system-out&gt; &lt;system-err&gt;&lt;![CDATA[]]&gt;&lt;/system-err&gt; &lt;/testsuite&gt; </code></pre> <p>Here's the snippet from ant's build.xml:</p> <pre><code>&lt;target name="test"&gt; &lt;junit errorProperty="test.failed" failureProperty="test.failed"&gt; &lt;formatter type="brief" usefile="false" /&gt; &lt;formatter type="xml" /&gt; &lt;batchtest todir="${buildresults.dir}"&gt; &lt;fileset dir="${basedir}"&gt; &lt;include name="nz.co*/**/tests/**/*.java" /&gt; &lt;include name="nz.co*/**/test/**/*.java" /&gt; &lt;/fileset&gt; &lt;/batchtest&gt; &lt;/junit&gt; &lt;fail message="Tests failed: check test reports." if="test.failed" /&gt; &lt;/target&gt; </code></pre> <p>and finally, here's the project's snippet from cruisecontrol's config.xml:</p> <pre><code>&lt;project requiremodification="false" name="Pick and Send"&gt; &lt;modificationset QuietPeriod="30"&gt; .... &lt;/modificationset&gt; &lt;schedule Interval="300" ShowProgress="true"&gt; &lt;ant AntWorkingDir="E:\Build\PickSend2" BuildFile="E:\Build\PickSend2\build.xml" Time="0400" Target="bat" anthome="apache-ant-1.7.0" /&gt; &lt;/schedule&gt; &lt;log&gt; &lt;merge Dir="E:\Build\PickSend2\buildresults" /&gt; &lt;/log&gt; &lt;bootstrappers&gt; .... &lt;/bootstrappers&gt; &lt;/project&gt; </code></pre> <p>Has anyone had this situation before?</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