Kaynağa Gözat

Speed up unit tests.

Stop creating a new jvm for every single test (reduces runtime from
the order of minutes to the order of seconds).

Change-Id: I55fe45cc8d6c0523acf6317585b23b4062f1aa48
Reviewed-on: http://gerrit.dmdirc.com/2697
Reviewed-by: Chris Smith <chris@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
tags/0.8rc1
Greg Holmes 10 yıl önce
ebeveyn
işleme
74d24fdbcd
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2
    2
      nbproject/build-impl.xml

+ 2
- 2
nbproject/build-impl.xml Dosyayı Görüntüle

@@ -213,7 +213,7 @@ is divided into following sections:
213 213
             <attribute default="**" name="testincludes"/>
214 214
             <sequential>
215 215
                 <delete dir="${test_profile_dir}"/>
216
-                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" timeout="120000">
216
+                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="yes" forkmode="once" showoutput="true" timeout="120000">
217 217
                     <classpath>
218 218
                         <pathelement path="${clover.jar}"/>
219 219
                     </classpath>
@@ -262,7 +262,7 @@ is divided into following sections:
262 262
             <attribute default="**" name="testincludes"/>
263 263
             <sequential>
264 264
                 <delete dir="${test_profile_dir}"/>
265
-                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" timeout="120000">
265
+                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="yes" forkmode="once" showoutput="true" timeout="120000">
266 266
                     <classpath refid="all.libs"/>
267 267
                     <env key="DMDIRC_HOME" value="${test_profile_dir}"/>
268 268
                     <batchtest todir="${build.test.results.dir}">

Loading…
İptal
Kaydet