Skip to content

Commit bf808e0

Browse files
committed
Added jacoco coverage
1 parent 3023111 commit bf808e0

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

pom.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
<maven-javadoc-plugin.version>2.9.1</maven-javadoc-plugin.version>
7474
<maven-release-plugin.version>2.4.1</maven-release-plugin.version>
7575
<maven-gpg-plugin.version>1.4</maven-gpg-plugin.version>
76+
<jacoco-maven-plugin.version>0.6.4.201312101107</jacoco-maven-plugin.version>
7677
</properties>
7778

7879
<dependencies>
@@ -153,6 +154,34 @@
153154
<tagNameFormat>@{project.version}</tagNameFormat>
154155
</configuration>
155156
</plugin>
157+
158+
<plugin>
159+
<groupId>org.jacoco</groupId>
160+
<artifactId>jacoco-maven-plugin</artifactId>
161+
<version>${jacoco-maven-plugin.version}</version>
162+
<configuration>
163+
<excludes>
164+
<exclude>**/BuildConfig.class</exclude>
165+
<exclude>**/R*.class</exclude>
166+
</excludes>
167+
</configuration>
168+
<executions>
169+
<execution>
170+
<id>jacoco-initialize</id>
171+
<phase>initialize</phase>
172+
<goals>
173+
<goal>prepare-agent</goal>
174+
</goals>
175+
</execution>
176+
<execution>
177+
<id>jacoco-site</id>
178+
<phase>package</phase>
179+
<goals>
180+
<goal>report</goal>
181+
</goals>
182+
</execution>
183+
</executions>
184+
</plugin>
156185
</plugins>
157186
</build>
158187

0 commit comments

Comments
 (0)