|
100 | 100 | <version>4.13.1</version> |
101 | 101 | <scope>test</scope> |
102 | 102 | </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> |
104 | 110 | <dependency> |
105 | 111 | <groupId>org.bouncycastle</groupId> |
106 | 112 | <artifactId>bcprov-jdk15on</artifactId> |
|
195 | 201 | <groupId>org.apache.maven.plugins</groupId> |
196 | 202 | <artifactId>maven-surefire-plugin</artifactId> |
197 | 203 | <version>2.22.0</version> |
| 204 | + <!-- 覆盖率offline模式新增---begin--> |
| 205 | + <configuration> |
| 206 | + <systemPropertyVariables> |
| 207 | + <jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile> |
| 208 | + </systemPropertyVariables> |
| 209 | + </configuration> |
| 210 | + <!-- ---end--> |
198 | 211 | </plugin> |
199 | 212 |
|
200 | 213 | <plugin> |
|
283 | 296 | <target>8</target> |
284 | 297 | </configuration> |
285 | 298 | </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> |
286 | 370 | </plugins> |
287 | 371 | </build> |
288 | 372 |
|
|
0 commit comments