Skip to content

Commit e339546

Browse files
author
markjrzhang
committed
2 parents e0579f0 + fdff206 commit e339546

File tree

1 file changed

+85
-1
lines changed

1 file changed

+85
-1
lines changed

pom.xml

Lines changed: 85 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,13 @@
100100
<version>4.13.1</version>
101101
<scope>test</scope>
102102
</dependency>
103-
103+
<dependency>
104+
<groupId>org.jacoco</groupId>
105+
<artifactId>org.jacoco.agent</artifactId>
106+
<version>0.8.6</version>
107+
<classifier>runtime</classifier>
108+
<scope>test</scope>
109+
</dependency>
104110
<dependency>
105111
<groupId>org.bouncycastle</groupId>
106112
<artifactId>bcprov-jdk15on</artifactId>
@@ -195,6 +201,13 @@
195201
<groupId>org.apache.maven.plugins</groupId>
196202
<artifactId>maven-surefire-plugin</artifactId>
197203
<version>2.22.0</version>
204+
<!-- 覆盖率offline模式新增-&#45;&#45;begin-->
205+
<configuration>
206+
<systemPropertyVariables>
207+
<jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
208+
</systemPropertyVariables>
209+
</configuration>
210+
<!-- -&#45;&#45;end-->
198211
</plugin>
199212

200213
<plugin>
@@ -283,6 +296,77 @@
283296
<target>8</target>
284297
</configuration>
285298
</plugin>
299+
<plugin>
300+
<groupId>org.jacoco</groupId>
301+
<artifactId>jacoco-maven-plugin</artifactId>
302+
<version>0.8.6</version>
303+
<!-- 覆盖率on-the-fly ===begin-->
304+
<!-- <configuration>-->
305+
<!-- <skip>false</skip>-->
306+
<!-- </configuration>-->
307+
<!-- <executions>-->
308+
<!-- <execution>-->
309+
<!-- <id>pre-test</id>-->
310+
<!-- <goals>-->
311+
<!-- <goal>prepare-agent</goal>-->
312+
<!-- </goals>-->
313+
<!-- </execution>-->
314+
<!-- <execution>-->
315+
<!-- <id>post-test</id>-->
316+
<!-- <phase>test</phase>-->
317+
<!-- <goals>-->
318+
<!-- <goal>report</goal>-->
319+
<!-- </goals>-->
320+
<!-- <configuration>-->
321+
<!-- <dataFile>target/jacoco.exec</dataFile>-->
322+
<!-- <outputDirectory>target/site/jacoco</outputDirectory>-->
323+
<!-- </configuration>-->
324+
<!-- </execution>-->
325+
<!-- </executions>-->
326+
<!-- ===end-->
327+
<!-- 覆盖率offline===begin-->
328+
<executions>
329+
<execution>
330+
<id>default-instrument</id>
331+
<goals>
332+
<goal>instrument</goal>
333+
</goals>
334+
</execution>
335+
<execution>
336+
<id>default-restore-instrumented-classes</id>
337+
<goals>
338+
<goal>restore-instrumented-classes</goal>
339+
</goals>
340+
</execution>
341+
<execution>
342+
<id>default-report</id>
343+
<goals>
344+
<goal>report</goal>
345+
</goals>
346+
</execution>
347+
<execution>
348+
<id>default-check</id>
349+
<goals>
350+
<goal>check</goal>
351+
</goals>
352+
<!-- <configuration>-->
353+
<!-- <rules>-->
354+
<!-- <rule>-->
355+
<!-- <element>BUNDLE</element>-->
356+
<!-- <limits>-->
357+
<!-- <limit>-->
358+
<!-- <counter>COMPLEXITY</counter>-->
359+
<!-- <value>COVEREDRATIO</value>-->
360+
<!-- <minimum>0.60</minimum>-->
361+
<!-- </limit>-->
362+
<!-- </limits>-->
363+
<!-- </rule>-->
364+
<!-- </rules>-->
365+
<!-- </configuration>-->
366+
</execution>
367+
</executions>
368+
<!-- ===end-->
369+
</plugin>
286370
</plugins>
287371
</build>
288372

0 commit comments

Comments
 (0)