Skip to content

Commit 2bda1cd

Browse files
committed
pit
1 parent a1f7c47 commit 2bda1cd

File tree

2 files changed

+84
-0
lines changed

2 files changed

+84
-0
lines changed

.github/workflows/pit.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# The MIT License (MIT)
2+
#
3+
# Copyright (c) 2016-2024 Objectionary.com
4+
#
5+
# Permission is hereby granted, free of charge, to any person obtaining a copy
6+
# of this software and associated documentation files (the "Software"), to deal
7+
# in the Software without restriction, including without limitation the rights
8+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
# copies of the Software, and to permit persons to whom the Software is
10+
# furnished to do so, subject to the following conditions:
11+
#
12+
# The above copyright notice and this permission notice shall be included
13+
# in all copies or substantial portions of the Software.
14+
#
15+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
18+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
# SOFTWARE.
22+
---
23+
name: pit
24+
on:
25+
push:
26+
branches:
27+
- master
28+
pull_request:
29+
branches:
30+
- master
31+
jobs:
32+
pit:
33+
name: pit
34+
runs-on: ubuntu-24.04
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: actions/setup-java@v4
38+
with:
39+
distribution: 'temurin'
40+
java-version: 21
41+
- uses: actions/cache@v4
42+
with:
43+
path: ~/.m2/repository
44+
key: ${{ runner.os }}-jdk-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}
45+
restore-keys: ${{ runner.os }}-jdk-${{ matrix.java }}-maven-
46+
- run: mvn clean test -Ppit

pom.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,44 @@ SOFTWARE.
267267
</plugins>
268268
</build>
269269
</profile>
270+
<profile>
271+
<id>pit</id>
272+
<activation>
273+
<activeByDefault>false</activeByDefault>
274+
</activation>
275+
<build>
276+
<plugins>
277+
<plugin>
278+
<groupId>org.pitest</groupId>
279+
<artifactId>pitest-maven</artifactId>
280+
<version>1.17.4</version>
281+
<executions>
282+
<execution>
283+
<goals>
284+
<goal>mutationCoverage</goal>
285+
</goals>
286+
<configuration>
287+
<threads>4</threads>
288+
<mutationThreshold>60</mutationThreshold>
289+
<excludedTestClasses>
290+
<class>org.eolang.lints.ProgramTest</class>
291+
<class>org.eolang.lints.PkMonoTest</class>
292+
<class>org.eolang.lints.LtByXslTest</class>
293+
</excludedTestClasses>
294+
</configuration>
295+
</execution>
296+
</executions>
297+
<dependencies>
298+
<dependency>
299+
<groupId>org.pitest</groupId>
300+
<artifactId>pitest-junit5-plugin</artifactId>
301+
<version>1.2.1</version>
302+
</dependency>
303+
</dependencies>
304+
</plugin>
305+
</plugins>
306+
</build>
307+
</profile>
270308
</profiles>
271309
<build>
272310
<plugins>

0 commit comments

Comments
 (0)