Last active
January 3, 2016 12:09
-
-
Save aVolpe/8461081 to your computer and use it in GitHub Desktop.
Configuración del plugin JACOCO para que genere los resultados de coverage en `target/jacoco.exec`
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> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>unit-test</id> | |
<phase>test</phase> | |
<goals> | |
<goal>test</goal> | |
</goals> | |
<configuration> | |
<skip>${maven.test.skip}</skip> | |
<argLine>${argLine}</argLine> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.jacoco</groupId> | |
<artifactId>jacoco-maven-plugin</artifactId> | |
<version>0.5.10.201208310627</version> | |
<configuration> | |
<skip>${maven.test.skip}</skip> | |
<destFile>${basedir}/target/jacoco.exec</destFile> | |
<dataFile>${basedir}/target/jacoco.exec</dataFile> | |
<output>file</output> | |
<append>true</append> | |
</configuration> | |
<executions> | |
<execution> | |
<id>jacoco-initialize</id> | |
<goals> | |
<goal>prepare-agent</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>jacoco-site</id> | |
<phase>verify</phase> | |
<goals> | |
<goal>report</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment