Skip to content

Commit a136f2b

Browse files
committed
Add JaCoCo code coverage plugin
This will generate code coverage report as part of the package/release targets so that we can identify areas needing improved testing.
1 parent 6f32f54 commit a136f2b

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

pom.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,46 @@
177177
</execution>
178178
</executions>
179179
</plugin>
180+
<plugin>
181+
<groupId>org.jacoco</groupId>
182+
<artifactId>jacoco-maven-plugin</artifactId>
183+
<version>0.8.7</version>
184+
<executions>
185+
<execution>
186+
<id>default-prepare-agent</id>
187+
<goals>
188+
<goal>prepare-agent</goal>
189+
</goals>
190+
</execution>
191+
<execution>
192+
<id>default-report</id>
193+
<phase>prepare-package</phase>
194+
<goals>
195+
<goal>report</goal>
196+
</goals>
197+
</execution>
198+
<execution>
199+
<id>default-check</id>
200+
<goals>
201+
<goal>check</goal>
202+
</goals>
203+
<configuration>
204+
<rules>
205+
<rule>
206+
<element>BUNDLE</element>
207+
<limits>
208+
<limit>
209+
<counter>COMPLEXITY</counter>
210+
<value>COVEREDRATIO</value>
211+
<minimum>0.60</minimum>
212+
</limit>
213+
</limits>
214+
</rule>
215+
</rules>
216+
</configuration>
217+
</execution>
218+
</executions>
219+
</plugin>
180220
</plugins>
181221
</build>
182222

0 commit comments

Comments
 (0)