File tree Expand file tree Collapse file tree 3 files changed +101
-11
lines changed
Expand file tree Collapse file tree 3 files changed +101
-11
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 145145 <artifactId >slf4j-api</artifactId >
146146 <version >${slf4j.version} </version >
147147 </dependency >
148+
149+ <!-- ======= -->
150+ <!-- 测试依赖 -->
151+ <!-- ======= -->
152+ <dependency >
153+ <groupId >org.junit.jupiter</groupId >
154+ <artifactId >junit-jupiter-engine</artifactId >
155+ <version >5.2.0</version >
156+ <scope >test</scope >
157+ </dependency >
158+
148159 </dependencies >
149160
150161 <repositories >
217228 </execution >
218229 </executions >
219230 </plugin >
231+
232+ <plugin >
233+ <groupId >org.jacoco</groupId >
234+ <artifactId >jacoco-maven-plugin</artifactId >
235+ <executions >
236+ <execution >
237+ <id >default-prepare-agent</id >
238+ <goals >
239+ <goal >prepare-agent</goal >
240+ </goals >
241+ </execution >
242+ <execution >
243+ <id >default-report</id >
244+ <phase >test</phase >
245+ <goals >
246+ <goal >report</goal >
247+ </goals >
248+ <configuration >
249+ <dataFile >target/jacoco.exec</dataFile >
250+ <outputDirectory >target/jacoco-ut</outputDirectory >
251+ </configuration >
252+ </execution >
253+ </executions >
254+ </plugin >
220255 </plugins >
221256 </build >
222257
Original file line number Diff line number Diff line change 133133 </annotationProcessorPaths >
134134 </configuration >
135135 </plugin >
136+ <plugin >
137+ <groupId >org.apache.maven.plugins</groupId >
138+ <artifactId >maven-surefire-plugin</artifactId >
139+ </plugin >
140+
141+ <plugin >
142+ <groupId >org.apache.maven.plugins</groupId >
143+ <artifactId >maven-surefire-report-plugin</artifactId >
144+ </plugin >
145+
146+ <plugin >
147+ <groupId >org.jacoco</groupId >
148+ <artifactId >jacoco-maven-plugin</artifactId >
149+ </plugin >
136150 </plugins >
151+
152+ <pluginManagement >
153+ <plugins >
154+ <plugin >
155+ <groupId >org.apache.maven.plugins</groupId >
156+ <artifactId >maven-surefire-plugin</artifactId >
157+ <version >3.2.5</version >
158+ </plugin >
159+
160+ <plugin >
161+ <groupId >org.apache.maven.plugins</groupId >
162+ <artifactId >maven-surefire-report-plugin</artifactId >
163+ <version >3.2.5</version >
164+ <configuration >
165+ <aggregate >true</aggregate >
166+ <outputDirectory >
167+ ${project.reporting.outputDirectory} /surefire
168+ </outputDirectory >
169+ <outputName >index</outputName >
170+ </configuration >
171+ </plugin >
172+
173+ <plugin >
174+ <groupId >org.jacoco</groupId >
175+ <artifactId >jacoco-maven-plugin</artifactId >
176+ <version >0.8.12</version >
177+ <executions >
178+ <execution >
179+ <id >jacoco-prepare</id >
180+ <goals >
181+ <goal >prepare-agent</goal >
182+ </goals >
183+ </execution >
184+ <execution >
185+ <id >jacoco-report</id >
186+ <phase >test</phase >
187+ <goals >
188+ <goal >report</goal >
189+ </goals >
190+ <configuration >
191+ <outputDirectory >
192+ ${project.reporting.outputDirectory} /jacoco
193+ </outputDirectory >
194+ </configuration >
195+ </execution >
196+ </executions >
197+ </plugin >
198+ </plugins >
199+ </pluginManagement >
200+
137201 </build >
202+
203+
138204</project >
You can’t perform that action at this time.
0 commit comments