Bläddra i källkod

Don't try and use clover optimised test runs.

As the tests now take about 3 seconds there's no point using clover
to try and reduce how many we run. This simplifies the build file
and will hopefully fix the double-test issues.

Change-Id: I1f689e8c5a1620a79fa64574d91012be207b1468
Fixes-issue: INFRA-62
Reviewed-on: http://gerrit.dmdirc.com/2702
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
tags/0.8rc1
Chris Smith 10 år sedan
förälder
incheckning
b6b3a740c4
2 ändrade filer med 1 tillägg och 88 borttagningar
  1. 1
    52
      nbproject/build-impl.xml
  2. 0
    36
      test/com/dmdirc/DummyTest.java

+ 1
- 52
nbproject/build-impl.xml Visa fil

@@ -204,9 +204,7 @@ is divided into following sections:
204 204
         </macrodef>
205 205
     </target>
206 206
 
207
-    <target name="-init-macrodef-junit" depends="-init-macrodef-junit-clover,-init-macrodef-junit-noclover"/>
208
-
209
-    <target name="-init-macrodef-junit-clover" if="clover.installed">
207
+    <target name="-init-macrodef-junit">
210 208
         <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
211 209
             <attribute default="${includes}" name="includes"/>
212 210
             <attribute default="${excludes}" name="excludes"/>
@@ -214,57 +212,8 @@ is divided into following sections:
214 212
             <sequential>
215 213
                 <delete dir="${test_profile_dir}"/>
216 214
                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="yes" forkmode="once" showoutput="true" timeout="120000">
217
-                    <classpath>
218
-                        <pathelement path="${clover.jar}"/>
219
-                    </classpath>
220 215
                     <env key="DMDIRC_HOME" value="${test_profile_dir}"/>
221 216
                     <classpath refid="all.libs"/>
222
-                    <batchtest todir="${build.test.results.dir}">
223
-                        <clover-optimized-testset>
224
-                            <fileset dir="${main.test.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
225
-                                <filename name="@{testincludes}"/>
226
-                            </fileset>
227
-                            <fileset dir="${parser.test.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
228
-                                <filename name="@{testincludes}"/>
229
-                            </fileset>
230
-                            <fileset dir="${plugins.test.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
231
-                                <filename name="@{testincludes}"/>
232
-                            </fileset>
233
-                            <fileset dir="${util.test.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
234
-                                <filename name="@{testincludes}"/>
235
-                            </fileset>
236
-                        </clover-optimized-testset>
237
-
238
-                        <fileset dir="${main.test.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
239
-                            <filename name="**/DummyTest*"/>
240
-                        </fileset>
241
-                    </batchtest>
242
-                    <classpath>
243
-                        <path path="${run.test.classpath}"/>
244
-                    </classpath>
245
-                    <syspropertyset>
246
-                        <propertyref prefix="test-sys-prop."/>
247
-                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
248
-                    </syspropertyset>
249
-                    <formatter type="brief" usefile="false"/>
250
-                    <formatter type="xml"/>
251
-                    <jvmarg line="${run.jvmargs}"/>
252
-                </junit>
253
-                <delete dir="${test_profile_dir}"/>
254
-            </sequential>
255
-        </macrodef>
256
-    </target>
257
-
258
-    <target name="-init-macrodef-junit-noclover" unless="clover.installed">
259
-        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
260
-            <attribute default="${includes}" name="includes"/>
261
-            <attribute default="${excludes}" name="excludes"/>
262
-            <attribute default="**" name="testincludes"/>
263
-            <sequential>
264
-                <delete dir="${test_profile_dir}"/>
265
-                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="yes" forkmode="once" showoutput="true" timeout="120000">
266
-                    <classpath refid="all.libs"/>
267
-                    <env key="DMDIRC_HOME" value="${test_profile_dir}"/>
268 217
                     <batchtest todir="${build.test.results.dir}">
269 218
                         <fileset dir="${main.test.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
270 219
                             <filename name="@{testincludes}"/>

+ 0
- 36
test/com/dmdirc/DummyTest.java Visa fil

@@ -1,36 +0,0 @@
1
-/*
2
- * Copyright (c) 2006-2013 DMDirc Developers
3
- *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
10
- *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
13
- *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
21
- */
22
-
23
-package com.dmdirc;
24
-
25
-import org.junit.Test;
26
-
27
-import static org.junit.Assert.*;
28
-
29
-public class DummyTest {
30
-
31
-    @Test
32
-    public void testDummy() {
33
-        assertTrue(true);
34
-    }
35
-
36
-}

Laddar…
Avbryt
Spara