Skip to content

Commit 18a15a7

Browse files
committed
Add JUnit 4 to extlib for PIT mutation testing on CI
The committed junit.jar is JUnit 3, which lacks the org.junit classes that PIT 1.15.3 requires for test discovery. This was the root cause of the PIT CI failure, not the TestNG warning. Made-with: Cursor
1 parent 275a5d5 commit 18a15a7

4 files changed

Lines changed: 12 additions & 13 deletions

File tree

build.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,7 @@
494494
<target name="pit" depends="test">
495495
<path id="mutation.path">
496496
<path refid="pitest.classpath" />
497-
<fileset dir="${extlib}" includes="*.jar" excludes="jacocoant.jar,testng*.jar,pitest*.jar" />
498-
<pathelement location="${dist}/vstar.jar" />
499-
<pathelement path="${test_build}" />
497+
<path refid="test.classpath" />
500498
</path>
501499
<!-- export feature activated to write mutants to file -->
502500
<pitest features="+EXPORT" threads="2" pitClasspath="pitest.classpath" classPath="mutation.path" targetClasses="org.aavso.tools.vstar.*" targetTests="org.aavso.tools.vstar.*" excludedtestclasses="org.aavso.tools.vstar.util.period.dcdft.*,org.aavso.tools.vstar.util.stats.DescStatsTest,org.aavso.tools.vstar.util.stats.anova.*" reportDir="${mutation_coverage_dir}" sourceDir="${src}" outputFormats="XML,HTML" />

extlib/ReadMe.txt

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,15 @@ See the URL for the web page of each project for more information.
6464
* ANTLR4 http://www.antlr.org
6565

6666
If you are a developer who wishes to contribute toward coding or
67-
testing VStar, apart from JUnit 3 (junit.jar), the following libraries
68-
must be downloaded (e.g. from https://mvnrepository.com) for unit
69-
testing purposes. Note that none of these libraries are redistributed
70-
as part of a VStar release.
67+
testing VStar, the following libraries are required for unit testing
68+
and CI purposes. None of these libraries are redistributed as part
69+
of a VStar release.
70+
71+
o JUnit 4 (test runner, required by pitest mutation testing)
72+
- junit-4.12.jar
73+
- hamcrest-core-1.3.jar
74+
- Eclipse Public License 1.0 (not distributed with VStar releases)
75+
- https://junit.org/junit4/
7176

7277
o Property based testing framework
7378
- quicktheories-0.26.jar
@@ -91,7 +96,7 @@ under tools/spotbugs/ and used by the spotbugs Ant target. Run with:
9196

9297
For nullness checking with the Checker Framework, the annotation
9398
types are in extlib and the checker processor is under tools:
94-
ant checkerframework
99+
ant checker
95100

96101
o Checker Framework (3.54.1)
97102
- https://checkerframework.org
@@ -107,8 +112,4 @@ For mutation testing, additional libraries are required.
107112
- pitest-ant-1.15.3.jar
108113
- pitest-entry-1.15.3.jar
109114
- testng-7.9.0.jar
110-
- JUnit 4 (or 5) required by pitest
111-
o under EPL-1.0 licence: can't be linked or distributed with VStar
112-
and not currently included here
113-
- junit-4.12.jar
114-
- hamcrest-core-1.3.jar
115+
- JUnit 4 required by pitest (see above)

extlib/hamcrest-core-1.3.jar

44 KB
Binary file not shown.

extlib/junit-4.12.jar

308 KB
Binary file not shown.

0 commit comments

Comments
 (0)