Created
July 21, 2018 13:06
-
-
Save privatejk2002/95c81d0eb90664351bff79b8504f02ff to your computer and use it in GitHub Desktop.
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
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.jacoco</groupId> | |
<artifactId>jacoco-maven-plugin</artifactId> | |
<version>>0.7.9</version> | |
<executions> | |
▽以下がpowermock向けの設定 | |
<execution> | |
<id>default-instrument</id> | |
<goals> | |
<goal>instrument</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>default-restore-instrumented-classes</id> | |
<goals> | |
<goal>restore-instrumented-classes</goal> | |
</goals> | |
</execution> | |
△ | |
<execution> | |
<id>report</id> | |
<phase>prepare-package</phase> | |
<goals> | |
<goal>report</goal> | |
</goals> | |
<configuration> | |
<dataFile>${project.build.directory}/coverage.exec</dataFile> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.19.1</version> | |
<configuration> | |
<systemPropertyVariables> | |
<jacoco-agent.destfile>${project.build.directory}/coverage.exec</jacoco-agent.destfile> | |
</systemPropertyVariables> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
<dependencies> | |
<dependency> | |
<groupId>org.jacoco</groupId> | |
<artifactId>org.jacoco.agent</artifactId> | |
<classifier>runtime</classifier> | |
<version>0.7.9</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment