-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
175 lines (159 loc) · 6.86 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mpumd.poc</groupId>
<artifactId>person</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>context-person</module>
<module>application</module>
<module>infra-spring</module>
</modules>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>21</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<!-- only for manager version of dependencies -->
<spring-boot-dependencies.version>3.3.4</spring-boot-dependencies.version>
<!-- Test -->
<datafaker.version>2.3.1</datafaker.version>
<easy-random.version>5.0.0</easy-random.version>
<pitest-maven.version>1.17.0</pitest-maven.version>
<pitest-junit5-plugin.version>1.2.1</pitest-junit5-plugin.version>
<pitest-maven.package.scope>com.mpumd.poc.person.*</pitest-maven.package.scope>
<cucumber-bom.version>7.19.0</cucumber-bom.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot-dependencies.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-bom</artifactId>
<version>${cucumber-bom.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!--##### Build #####-->
<!-- like lombok or SB configuration processor -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency>
<!--##### Run #####-->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<!--##### Test #####-->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
<!-- UT -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
<!-- BDD -->
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-suite</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit-platform-engine</artifactId>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<scope>test</scope>
</dependency>
<!-- generator of fake data like firstname -->
<dependency>
<groupId>net.datafaker</groupId>
<artifactId>datafaker</artifactId>
<version>${datafaker.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jeasy</groupId>
<artifactId>easy-random-core</artifactId>
<version>${easy-random.version}</version>
<scope>test</scope>
</dependency>
<!-- <dependency> <!– generate a fake person data –>-->
<!-- <groupId>com.devskiller</groupId>-->
<!-- <artifactId>jfairy</artifactId>-->
<!-- <version>${jfairy.version}</version>-->
<!-- <scope>test</scope>-->
<!-- </dependency>-->
</dependencies>
<build>
<plugins>
<plugin>
<!-- mutation testing to increase the test resilience -->
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>${pitest-maven.version}</version>
<dependencies>
<dependency>
<groupId>org.pitest</groupId>
<artifactId>pitest-junit5-plugin</artifactId>
<version>${pitest-junit5-plugin.version}</version>
</dependency>
</dependencies>
<configuration>
<targetClasses>
<param>${pitest-maven.package.scope}</param>
</targetClasses>
<targetTests>
<param>${pitest-maven.package.scope}</param>
</targetTests>
<mutators>
<!-- https://pitest.org/quickstart/mutators/ -->
<!-- OLD_DEFAULTS, DEFAULTS, STRONGER -->
<mutator>ALL</mutator>
</mutators>
<!-- It failed on specific tests. I don't know why
SEVERE : Tests failing without mutation:
Description [
testClass=com.mpumd.poc.person.context.aggregat.PersonTest,
name=[engine:junit-jupiter]/[class:com.mpumd.poc.person.context.aggregat.PersonTest]/[method:dontMissTest_TDD_Approch_please()]
]
[ERROR] Failed to execute goal org.pitest:pitest-maven:1.17.0:mutationCoverage (default-cli)
on project context-person: Execution default-cli of goal org.pitest:pitest-maven:1.17.0:mutationCoverage
failed: 1 tests did not pass without mutation when calculating line coverage. Mutation testing requires a green suite.
TODO fix it if possible with new version
In waiting, exclude test with junit 5 tags
-->
<excludedGroups>PITestIgnore</excludedGroups>
</configuration>
</plugin>
</plugins>
</build>
</project>