|
304 | 304 | <configuration> |
305 | 305 | <!-- <forkCount>3</forkCount> |
306 | 306 | <reuseForks>true</reuseForks>--> |
307 | | - <argLine>-Dfile.encoding=${project.build.sourceEncoding}</argLine> |
| 307 | + <argLine>${surefireArgLine} -Dfile.encoding=${project.build.sourceEncoding}</argLine> |
308 | 308 | <systemPropertyVariables> |
309 | 309 | <odftoolkit.version>${project.version}</odftoolkit.version> |
310 | 310 | <odftoolkit.git.branch>${git.branch}</odftoolkit.git.branch> |
|
519 | 519 | </formats> |
520 | 520 | </configuration> |
521 | 521 | </execution> |
| 522 | + <!-- |
| 523 | + Prepares the property pointing to the JaCoCo runtime agent which |
| 524 | + is passed as VM argument when Maven the Failsafe plugin is executed. |
| 525 | + --> |
| 526 | + <execution> |
| 527 | + <id>pre-integration-test</id> |
| 528 | + <phase>pre-integration-test</phase> |
| 529 | + <goals> |
| 530 | + <goal>prepare-agent-integration</goal> |
| 531 | + </goals> |
| 532 | + <configuration> |
| 533 | + <!-- Sets the path to the file which contains the execution data. --> |
| 534 | + <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile> |
| 535 | + <!-- |
| 536 | + Sets the name of the property containing the settings |
| 537 | + for JaCoCo runtime agent. |
| 538 | + --> |
| 539 | + <propertyName>failsafeArgLine</propertyName> |
| 540 | + </configuration> |
| 541 | + </execution> |
| 542 | + <!-- |
| 543 | + Ensures that the code coverage report for integration tests is created after |
| 544 | + integration tests have been run. |
| 545 | + --> |
| 546 | + <execution> |
| 547 | + <id>post-integration-test</id> |
| 548 | + <phase>post-integration-test</phase> |
| 549 | + <goals> |
| 550 | + <goal>report-integration</goal> |
| 551 | + </goals> |
| 552 | + <configuration> |
| 553 | + <!-- Sets the path to the file which contains the execution data. --> |
| 554 | + <dataFile>${project.build.directory}/coverage-reports/jacoco-it.exec</dataFile> |
| 555 | + <!-- Sets the output directory for the code coverage report. --> |
| 556 | + <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory> |
| 557 | + <formats> |
| 558 | + <format>XML</format> |
| 559 | + <format>CSV</format> |
| 560 | + </formats> |
| 561 | + </configuration> |
| 562 | + </execution> |
522 | 563 | </executions> |
523 | 564 | </plugin> |
524 | 565 | </plugins> |
|
542 | 583 | <directory>${project.basedir}</directory> |
543 | 584 | <includes> |
544 | 585 | <include>**/target/coverage-reports/jacoco-ut.exec</include> |
| 586 | + <include>**/target/coverage-reports/jacoco-it.exec</include> |
545 | 587 | </includes> |
546 | 588 | </fileSet> |
547 | 589 | </fileSets> |
|
0 commit comments