OutOfMemoryError avec Eclipse/JUnit
Bonjour à tous,
j'ai le problème suivant qui apparait lorsque je lance une tâche ant d'exécution de tests JUnit via Eclipse:
Citation:
[junit] Tests run: 6, Failures: 0, Errors: 6, Time elapsed: 6.406 sec
[junit] Test com.xxx.yyy.XXXYYYImplTest FAILED
[junit] Running com.xxx.zzz.ZZZZTest
BUILD FAILED
C:\Workspace\Workspace342\XXX\build_tests.xml:113: java.lang.OutOfMemoryError: PermGen space
Total time: 1 minute 28 seconds
Sous Run->External Tools->Config j'ai pourtant configuré dans l'onglet JRE les VM arguments "-Xmx512m -Xmx1024m"
Voici la cible:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
<target name="runJunitTests" depends="compileTests" if="junit.present" description="Execute tous les tests JUnit">
<junit haltonerror="no" haltonfailure="no" printsummary="yes">
<classpath>
<pathelement path="${java.class.path}" />
<pathelement path="${build.dir}" />
</classpath>
<batchtest todir="${reports.dir}">
<formatter type="xml" usefile="true" />
<fileset dir="${tests.dir}">
<include name="**/*Test.java" />
<exclude name="**/AllTests.java" />
</fileset>
</batchtest>
</junit>
<mkdir dir="${reports.dir}/html" />
</target> |
Une idée?