Hi David,
this should be fixed by running the tests forked. I submitted a patch for
that for some days ago, which is applied, so you just build a new magic by
issuing "ant update" in ../avalon/tools/magic
Then, you could set the project.test.compile.fork to true, we do it in the
standard.xml (I attach it as standard.txt) in the dotest target, so we have
it set globally.
Cheers
/peter
> -----Ursprungligt meddelande-----
> Fr�n: David Leangen [mailto:[EMAIL PROTECTED]
> Skickat: den 4 oktober 2004 14:12
> Till: [EMAIL PROTECTED]
> �mne: OutOfMemoryError when running unit tests
>
>
>
> Hello,
>
> I am getting an OutOfMemoryError when running my unit tests.
>
> I am only having this problem when running the tests using
> Magic. Each of
> the tests pass individually. I can also run various packages of tests
> grouped together. Without trying every possible combination,
> generally the
> error only occurs when I run tests in all my packages.
>
>
> Any suggestions?
>
>
> Thanks!
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
<?xml version="1.0" encoding="UTF-8" ?>
<project name="standard" default="install" xmlns:x="antlib:org.apache.avalon.tools">
<!--<property name="cc.status.dir" location="target"/> -->
<property name="cc.status.dir"
location="C:\src\Orchard\target\checkout\Orchard\target"/>
<x:home/>
<target name="info">
<x:info/>
</target>
<target name="init" depends="info">
<x:init/>
</target>
<target name="clean" depends="info">
<x:clean/>
</target>
<target name="prepare" depends="init">
<x:prepare/>
</target>
<target name="build" depends="prepare">
<x:javac/>
</target>
<target name="package" depends="build">
<x:jar/>
</target>
<target name="test" depends="dotest,package,check-status"/>
<target name="check-status" if="cc.status.dir.available">
<echo>CHECK STATUS</echo>
<mkdir dir="../test/target/test-reports"/>
<!-- needed by cruisecontrol -->
<antcall target="check-failure"/>
<antcall target="check-error"/>
</target>
<!-- this is needed since the top level build can't access the magic properties -->
<target name="check-failure" if="project.test.failure">
<touch file="${cc.status.dir}/failure.magic"/>
</target>
<target name="check-error" if="project.test.error">
<touch file="${cc.status.dir}/error.magic"/>
</target>
<target name="dotest" depends="package" unless="project.test.notest">
<property name="project.test.compile.fork" value="true"/>
<property name="project.test.halt-on-failure" value="false"/>
<property name="project.test.halt-on-error" value="false"/>
<x:junit/>
<available file="${cc.status.dir}" type="dir"
property="cc.status.dir.available"/>
<echo>\n\n--->cc.status.dir.available=${cc.status.dir.available}</echo>
</target>
<target name="notest">
<property name="project.test.notest" value="true"/>
<antcall target="install"/>
</target>
<target name="install" depends="test">
<x:install/>
</target>
<target name="javadoc" depends="prepare">
<x:javadoc/>
</target>
<target name="xdoc" depends="prepare">
<x:xdoc theme="modern"/>
</target>
<target name="site" depends="javadoc,xdoc"/>
<target name="dist" depends="install,site"/>
<target name="report">
<property name="report.html.dir" location="../test/target/test-html"/>
<property name="report.xml.dir"
location="../test/target/test-reports"/>
<mkdir dir="${report.html.dir}"/>
<junitreport todir="${report.html.dir}">
<fileset dir="${report.xml.dir}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${report.html.dir}"/>
</junitreport>
</target>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]