|
237 | 237 |
|
238 | 238 | <build> |
239 | 239 | <plugins> |
| 240 | + <plugin> |
| 241 | + <groupId>org.jacoco</groupId> |
| 242 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 243 | + <executions> |
| 244 | + <execution> |
| 245 | + <id>prepare-agent</id> |
| 246 | + <goals> |
| 247 | + <goal>prepare-agent</goal> |
| 248 | + </goals> |
| 249 | + </execution> |
| 250 | + <execution> |
| 251 | + <id>prepare-agent-it</id> |
| 252 | + <goals> |
| 253 | + <goal>prepare-agent-integration</goal> |
| 254 | + </goals> |
| 255 | + <phase>pre-integration-test</phase> |
| 256 | + </execution> |
| 257 | + <execution> |
| 258 | + <id>merge-coverage-reports</id> |
| 259 | + <phase>verify</phase> |
| 260 | + <goals> |
| 261 | + <goal>merge</goal> |
| 262 | + </goals> |
| 263 | + <configuration> |
| 264 | + <fileSets> |
| 265 | + <fileSet> |
| 266 | + <directory>${project.basedir}</directory> |
| 267 | + <includes> |
| 268 | + <include>/target/jacoco.exec</include> |
| 269 | + <include>/target/jacoco-it.exec</include> |
| 270 | + </includes> |
| 271 | + </fileSet> |
| 272 | + </fileSets> |
| 273 | + <destFile>${project.basedir}/target/jacoco-aggregate.exec</destFile> |
| 274 | + </configuration> |
| 275 | + </execution> |
| 276 | + <execution> |
| 277 | + <id>check</id> |
| 278 | + <goals> |
| 279 | + <goal>check</goal> |
| 280 | + </goals> |
| 281 | + <configuration> |
| 282 | + <rules> |
| 283 | + <rule> |
| 284 | + <element>BUNDLE</element> |
| 285 | + <limits> |
| 286 | + <limit> |
| 287 | + <counter>INSTRUCTION</counter> |
| 288 | + <value>COVEREDRATIO</value> |
| 289 | + <minimum>0.85</minimum> |
| 290 | + </limit> |
| 291 | + <limit> |
| 292 | + <counter>BRANCH</counter> |
| 293 | + <value>COVEREDRATIO</value> |
| 294 | + <minimum>0.50</minimum> |
| 295 | + </limit> |
| 296 | + <limit> |
| 297 | + <counter>COMPLEXITY</counter> |
| 298 | + <value>COVEREDRATIO</value> |
| 299 | + <minimum>0.50</minimum> |
| 300 | + </limit> |
| 301 | + <limit> |
| 302 | + <counter>LINE</counter> |
| 303 | + <value>COVEREDRATIO</value> |
| 304 | + <minimum>0.50</minimum> |
| 305 | + </limit> |
| 306 | + <limit> |
| 307 | + <counter>METHOD</counter> |
| 308 | + <value>COVEREDRATIO</value> |
| 309 | + <minimum>0.80</minimum> |
| 310 | + </limit> |
| 311 | + <limit> |
| 312 | + <counter>CLASS</counter> |
| 313 | + <value>COVEREDRATIO</value> |
| 314 | + <minimum>0.80</minimum> |
| 315 | + </limit> |
| 316 | + </limits> |
| 317 | + </rule> |
| 318 | + </rules> |
| 319 | + <dataFile>${project.basedir}/target/jacoco-aggregate.exec</dataFile> |
| 320 | + </configuration> |
| 321 | + </execution> |
| 322 | + <execution> |
| 323 | + <id>report</id> |
| 324 | + <phase>test</phase> |
| 325 | + <goals> |
| 326 | + <goal>report</goal> |
| 327 | + </goals> |
| 328 | + <configuration> |
| 329 | + <dataFile>${project.basedir}/target/jacoco-aggregate.exec</dataFile> |
| 330 | + </configuration> |
| 331 | + </execution> |
| 332 | + </executions> |
| 333 | + </plugin> |
240 | 334 | <plugin> |
241 | 335 | <groupId>org.apache.maven.plugins</groupId> |
242 | 336 | <artifactId>maven-failsafe-plugin</artifactId> |
|
0 commit comments