Skip to content

Commit edd9df9

Browse files
committed
done with pitest
1 parent 5034285 commit edd9df9

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

.github/workflows/jacoco.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,9 @@ jobs:
3939
- name: Build with Maven
4040
run: mvn -Drat.skip=true package --errors --show-version --batch-mode --no-transfer-progress
4141

42-
# Add JaCoCo report generation step here
4342
- name: Generate JaCoCo report
4443
run: mvn -Drat.skip=true clean test jacoco:report
4544

46-
# Upload JaCoCo HTML report with unique name
4745
- name: Upload JaCoCo HTML report
4846
uses: actions/upload-artifact@v3
4947
with:

pom.xml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ limitations under the License.
6868
<version>2.18.0</version>
6969
<scope>test</scope>
7070
</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>
7177
<dependency>
7278
<groupId>org.junit.jupiter</groupId>
7379
<artifactId>junit-jupiter-engine</artifactId>
@@ -117,6 +123,39 @@ limitations under the License.
117123
<defaultGoal>clean verify apache-rat:check japicmp:cmp checkstyle:check javadoc:javadoc</defaultGoal>
118124
<pluginManagement>
119125
<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+
120159
<plugin>
121160
<groupId>org.jacoco</groupId>
122161
<artifactId>jacoco-maven-plugin</artifactId>

0 commit comments

Comments
 (0)