Skip to content

Commit 3f65d2f

Browse files
Innovarzwenggibson9583mgaffigantonygermano
committed
Update unit tests/jacoco to java 17
Co-authored-by: Chris Gibson <[email protected]> Co-authored-by: Mitch Gaffigan <[email protected]> Co-authored-by: Tony Germano <[email protected]> Signed-off-by: Tony Germano <[email protected]>
1 parent 57bc9e7 commit 3f65d2f

36 files changed

+150
-70
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,13 @@ Desktop.ini
107107
donkey/donkey-src
108108
donkey/donkey-test
109109
.sonar
110+
# Unit Tests:
110111
**/junit-reports
112+
**/junit-html
111113
**/code-coverage-reports
114+
/exports/
115+
/MapUtilTestDB/
116+
/testconf/
112117

113118
# /client/
114119
/client/logs

client/ant-build.xml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,23 @@
332332
<classpath refid="testclasspath" />
333333
</javac>
334334
</target>
335-
336-
<taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
337-
<classpath path="${server}/lib/ant/jacocoant.jar"/>
338-
</taskdef>
339-
335+
336+
<path id="jacoco.classpath">
337+
<fileset dir="../server/lib/ant">
338+
<include name="org.jacoco.ant-0.8.8.jar"/>
339+
<include name="org.jacoco.core-0.8.8.jar"/>
340+
<include name="org.jacoco.report-0.8.8.jar"/>
341+
<include name="org.jacoco.agent-0.8.8.jar"/>
342+
<include name="asm-9.2.jar"/>
343+
<include name="asm-tree-9.2.jar"/>
344+
<include name="asm-commons-9.2.jar"/>
345+
</fileset>
346+
</path>
347+
348+
<taskdef uri="antlib:org.jacoco.ant"
349+
resource="org/jacoco/ant/antlib.xml"
350+
classpathref="jacoco.classpath"/>
351+
340352
<target name="test-run" depends="test-compile">
341353
<property name="junit-reports" value="junit-reports" />
342354
<property name="code-coverage-reports" value="code-coverage-reports" />
@@ -347,6 +359,8 @@
347359
<junit haltonfailure="false" fork="true" forkmode="once">
348360
<jvmarg value="-Xms128m" />
349361
<jvmarg value="-Xmx2048m" />
362+
<!-- https://stackoverflow.com/questions/54205486 -->
363+
<jvmarg value="-Xshare:off" />
350364
<classpath>
351365
<path refid="testclasspath" />
352366
<dirset dir="${test_classes}"/>

command/build.xml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,23 @@
7171
<classpath refid="testclasspath" />
7272
</javac>
7373
</target>
74-
75-
<taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
76-
<classpath path="${server}/lib/ant/jacocoant.jar"/>
77-
</taskdef>
78-
74+
75+
<path id="jacoco.classpath">
76+
<fileset dir="../server/lib/ant">
77+
<include name="org.jacoco.ant-0.8.8.jar"/>
78+
<include name="org.jacoco.core-0.8.8.jar"/>
79+
<include name="org.jacoco.report-0.8.8.jar"/>
80+
<include name="org.jacoco.agent-0.8.8.jar"/>
81+
<include name="asm-9.2.jar"/>
82+
<include name="asm-tree-9.2.jar"/>
83+
<include name="asm-commons-9.2.jar"/>
84+
</fileset>
85+
</path>
86+
87+
<taskdef uri="antlib:org.jacoco.ant"
88+
resource="org/jacoco/ant/antlib.xml"
89+
classpathref="jacoco.classpath"/>
90+
7991
<target name="test-run" depends="test-compile">
8092
<property name="junit-reports" value="junit-reports" />
8193
<property name="code-coverage-reports" value="code-coverage-reports" />
@@ -86,6 +98,8 @@
8698
<junit haltonfailure="false" fork="true" forkmode="once">
8799
<jvmarg value="-Xms128m" />
88100
<jvmarg value="-Xmx2048m" />
101+
<!-- https://stackoverflow.com/questions/54205486 -->
102+
<jvmarg value="-Xshare:off" />
89103
<classpath>
90104
<path refid="testclasspath" />
91105
<dirset dir="${test_classes}"/>
@@ -99,4 +113,4 @@
99113
</junit>
100114
</jacoco:coverage>
101115
</target>
102-
</project>
116+
</project>

donkey/build.xml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,22 @@
7070
<classpath refid="testclasspath" />
7171
</javac>
7272
</target>
73-
74-
<taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
75-
<classpath path="${server}/lib/ant/jacocoant.jar"/>
76-
</taskdef>
73+
74+
<path id="jacoco.classpath">
75+
<fileset dir="../server/lib/ant">
76+
<include name="org.jacoco.ant-0.8.8.jar"/>
77+
<include name="org.jacoco.core-0.8.8.jar"/>
78+
<include name="org.jacoco.report-0.8.8.jar"/>
79+
<include name="org.jacoco.agent-0.8.8.jar"/>
80+
<include name="asm-9.2.jar"/>
81+
<include name="asm-tree-9.2.jar"/>
82+
<include name="asm-commons-9.2.jar"/>
83+
</fileset>
84+
</path>
85+
86+
<taskdef uri="antlib:org.jacoco.ant"
87+
resource="org/jacoco/ant/antlib.xml"
88+
classpathref="jacoco.classpath"/>
7789

7890
<target name="test-run" depends="test-compile">
7991
<property name="junit-reports" value="junit-reports" />
@@ -85,6 +97,8 @@
8597
<junit haltonfailure="false" fork="true" forkmode="once">
8698
<jvmarg value="-Xms128m" />
8799
<jvmarg value="-Xmx2048m" />
100+
<!-- https://stackoverflow.com/questions/54205486 -->
101+
<jvmarg value="-Xshare:off" />
88102
<classpath>
89103
<path refid="testclasspath" />
90104
<dirset dir="${test_classes}"/>
4.02 MB
Binary file not shown.
-2.87 MB
Binary file not shown.
251 KB
Binary file not shown.
-39.1 KB
Binary file not shown.
-519 KB
Binary file not shown.
669 KB
Binary file not shown.

0 commit comments

Comments
 (0)