Last active
April 7, 2020 17:31
-
-
Save tasdemirbahadir/9c6fa1faebd9a2b8a679e0e334578738 to your computer and use it in GitHub Desktop.
Jacoco plugin configuration stanza
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.jacoco</groupId> | |
<artifactId>jacoco-maven-plugin</artifactId> | |
<version>0.8.5</version> | |
<executions> | |
<execution> | |
<id>pre-test</id> | |
<goals> | |
<goal>prepare-agent</goal> | |
</goals> | |
<configuration> | |
<propertyName>jacocoArgLine</propertyName> | |
<destFile>${project.test.result.directory}/jacoco/jacoco.exec</destFile> | |
</configuration> | |
</execution> | |
<execution> | |
<id>post-test</id> | |
<phase>test</phase> | |
<goals> | |
<goal>report</goal> | |
</goals> | |
<configuration> | |
<dataFile>${project.test.result.directory}/jacoco/jacoco.exec</dataFile> | |
<outputDirectory>${project.test.result.directory}/jacoco</outputDirectory> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment