|
58 | 58 | <hadoop.version>2.7.3</hadoop.version>
|
59 | 59 | <apacheds-jdbm1.version>2.0.0-M2</apacheds-jdbm1.version>
|
60 | 60 | <kafka.connect.maven.plugin.version>0.11.1</kafka.connect.maven.plugin.version>
|
| 61 | + <instruction.coverage.threshold>0.65</instruction.coverage.threshold> |
| 62 | + <branch.coverage.threshold>0.59</branch.coverage.threshold> |
| 63 | + <method.coverage.threshold>0.63</method.coverage.threshold> |
| 64 | + <class.coverage.threshold>0.67</class.coverage.threshold> |
| 65 | + <complexity.coverage.threshold>0.53</complexity.coverage.threshold> |
| 66 | + <line.coverage.threshold>0.66</line.coverage.threshold> |
61 | 67 | </properties>
|
62 | 68 |
|
63 | 69 | <repositories>
|
|
265 | 271 | </filesets>
|
266 | 272 | </configuration>
|
267 | 273 | </plugin>
|
| 274 | + <plugin> |
| 275 | + <groupId>org.jacoco</groupId> |
| 276 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 277 | + <version>0.8.11</version> |
| 278 | + <configuration> |
| 279 | + <excludes> |
| 280 | + <exclude>**/model/**</exclude> |
| 281 | + <exclude>**/rest/**</exclude> |
| 282 | + </excludes> |
| 283 | + </configuration> |
| 284 | + <executions> |
| 285 | + <execution> |
| 286 | + <id>prepare-agent</id> |
| 287 | + <goals> |
| 288 | + <goal>prepare-agent</goal> |
| 289 | + </goals> |
| 290 | + </execution> |
| 291 | + <execution> |
| 292 | + <id>prepare-agent-it</id> |
| 293 | + <goals> |
| 294 | + <goal>prepare-agent-integration</goal> |
| 295 | + </goals> |
| 296 | + <phase>pre-integration-test</phase> |
| 297 | + </execution> |
| 298 | + <execution> |
| 299 | + <id>merge-coverage-reports</id> |
| 300 | + <phase>verify</phase> |
| 301 | + <goals> |
| 302 | + <goal>merge</goal> |
| 303 | + </goals> |
| 304 | + <configuration> |
| 305 | + <fileSets> |
| 306 | + <fileSet> |
| 307 | + <directory>${project.basedir}</directory> |
| 308 | + <includes> |
| 309 | + <include>/target/jacoco.exec</include> |
| 310 | + <include>/target/jacoco-it.exec</include> |
| 311 | + </includes> |
| 312 | + </fileSet> |
| 313 | + </fileSets> |
| 314 | + <destFile>${project.basedir}/target/jacoco-aggregate.exec</destFile> |
| 315 | + </configuration> |
| 316 | + </execution> |
| 317 | + <execution> |
| 318 | + <id>check</id> |
| 319 | + <goals> |
| 320 | + <goal>check</goal> |
| 321 | + </goals> |
| 322 | + <configuration> |
| 323 | + <rules> |
| 324 | + <rule> |
| 325 | + <element>BUNDLE</element> |
| 326 | + <limits> |
| 327 | + <limit> |
| 328 | + <counter>INSTRUCTION</counter> |
| 329 | + <value>COVEREDRATIO</value> |
| 330 | + <minimum>${instruction.coverage.threshold}</minimum> |
| 331 | + </limit> |
| 332 | + <limit> |
| 333 | + <counter>BRANCH</counter> |
| 334 | + <value>COVEREDRATIO</value> |
| 335 | + <minimum>${branch.coverage.threshold}</minimum> |
| 336 | + </limit> |
| 337 | + <limit> |
| 338 | + <counter>COMPLEXITY</counter> |
| 339 | + <value>COVEREDRATIO</value> |
| 340 | + <minimum>${complexity.coverage.threshold}</minimum> |
| 341 | + </limit> |
| 342 | + <limit> |
| 343 | + <counter>LINE</counter> |
| 344 | + <value>COVEREDRATIO</value> |
| 345 | + <minimum>${line.coverage.threshold}</minimum> |
| 346 | + </limit> |
| 347 | + <limit> |
| 348 | + <counter>METHOD</counter> |
| 349 | + <value>COVEREDRATIO</value> |
| 350 | + <minimum>${method.coverage.threshold}</minimum> |
| 351 | + </limit> |
| 352 | + <limit> |
| 353 | + <counter>CLASS</counter> |
| 354 | + <value>COVEREDRATIO</value> |
| 355 | + <minimum>${class.coverage.threshold}</minimum> |
| 356 | + </limit> |
| 357 | + </limits> |
| 358 | + </rule> |
| 359 | + </rules> |
| 360 | + <dataFile>${project.basedir}/target/jacoco-aggregate.exec</dataFile> |
| 361 | + </configuration> |
| 362 | + </execution> |
| 363 | + <execution> |
| 364 | + <id>generate-code-coverage-report</id> |
| 365 | + <phase>verify</phase> |
| 366 | + <goals> |
| 367 | + <goal>report</goal> |
| 368 | + </goals> |
| 369 | + <configuration> |
| 370 | + <dataFile>${project.basedir}/target/jacoco-aggregate.exec</dataFile> |
| 371 | + </configuration> |
| 372 | + </execution> |
| 373 | + </executions> |
| 374 | + </plugin> |
268 | 375 | </plugins>
|
269 | 376 |
|
270 | 377 | <resources>
|
|
0 commit comments