File tree 2 files changed +39
-2
lines changed
2 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 39
39
- name : Build with Maven
40
40
run : mvn -Drat.skip=true package --errors --show-version --batch-mode --no-transfer-progress
41
41
42
- # Add JaCoCo report generation step here
43
42
- name : Generate JaCoCo report
44
43
run : mvn -Drat.skip=true clean test jacoco:report
45
44
46
- # Upload JaCoCo HTML report with unique name
47
45
- name : Upload JaCoCo HTML report
48
46
uses : actions/upload-artifact@v3
49
47
with :
Original file line number Diff line number Diff line change @@ -68,6 +68,12 @@ limitations under the License.
68
68
<version >2.18.0</version >
69
69
<scope >test</scope >
70
70
</dependency >
71
+ <dependency >
72
+ <groupId >org.pitest</groupId >
73
+ <artifactId >pitest-junit5-plugin</artifactId >
74
+ <version >1.2.1</version >
75
+ <scope >test</scope >
76
+ </dependency >
71
77
<dependency >
72
78
<groupId >org.junit.jupiter</groupId >
73
79
<artifactId >junit-jupiter-engine</artifactId >
@@ -117,6 +123,39 @@ limitations under the License.
117
123
<defaultGoal >clean verify apache-rat:check japicmp:cmp checkstyle:check javadoc:javadoc</defaultGoal >
118
124
<pluginManagement >
119
125
<plugins >
126
+ <plugin >
127
+ <groupId >org.pitest</groupId >
128
+ <artifactId >pitest-maven</artifactId >
129
+ <version >1.15.3</version > <!-- Use the latest version -->
130
+ <configuration >
131
+ <targetClasses >
132
+ <param >org.apache.commons.codec.*</param >
133
+ </targetClasses >
134
+ <targetTests >
135
+ <param >org.apache.commons.codec.*Test</param >
136
+ </targetTests >
137
+ <mutators >
138
+ <mutator >DEFAULTS</mutator >
139
+ </mutators >
140
+ <excludedMethods >
141
+ <excludedMethod >main</excludedMethod >
142
+ </excludedMethods >
143
+ <threads >4</threads >
144
+ <outputFormats >
145
+ <param >HTML</param >
146
+ </outputFormats >
147
+ </configuration >
148
+ <executions >
149
+ <execution >
150
+ <id >mutation-testing</id >
151
+ <phase >test</phase >
152
+ <goals >
153
+ <goal >mutationCoverage</goal >
154
+ </goals >
155
+ </execution >
156
+ </executions >
157
+ </plugin >
158
+
120
159
<plugin >
121
160
<groupId >org.jacoco</groupId >
122
161
<artifactId >jacoco-maven-plugin</artifactId >
You can’t perform that action at this time.
0 commit comments