Skip to content

Commit b98aa26

Browse files
authored
Merge pull request #193 from datastax/CDM-94
CDM-94 Add JaCoCo code coverage plugin and set for minimum coverage p…
2 parents 4cf5667 + b6599cc commit b98aa26

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

pom.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,58 @@
225225
<target>1.8</target>
226226
</configuration>
227227
</plugin>
228+
229+
<!-- Integrate JaCoCo code coverage plugin from https://www.eclemma.org/jacoco/trunk/doc/index.html -->
230+
<plugin>
231+
<groupId>org.jacoco</groupId>
232+
<artifactId>jacoco-maven-plugin</artifactId>
233+
<version>0.8.10</version>
234+
<executions>
235+
<execution>
236+
<goals>
237+
<goal>prepare-agent</goal>
238+
</goals>
239+
</execution>
240+
<execution>
241+
<id>report</id>
242+
<phase>prepare-package</phase>
243+
<goals>
244+
<goal>report</goal>
245+
</goals>
246+
</execution>
247+
<execution>
248+
<id>jacoco-check</id>
249+
<goals>
250+
<goal>check</goal>
251+
</goals>
252+
<configuration>
253+
<rules>
254+
<rule>
255+
<element>BUNDLE</element>
256+
<limits>
257+
<limit>
258+
<counter>COMPLEXITY</counter>
259+
<value>COVEREDRATIO</value>
260+
<minimum>0.33</minimum>
261+
</limit>
262+
<limit>
263+
<counter>INSTRUCTION</counter>
264+
<value>COVEREDRATIO</value>
265+
<minimum>42%</minimum>
266+
</limit>
267+
<limit>
268+
<counter>LINE</counter>
269+
<value>MISSEDCOUNT</value>
270+
<maximum>1544</maximum>
271+
</limit>
272+
</limits>
273+
</rule>
274+
</rules>
275+
</configuration>
276+
</execution>
277+
</executions>
278+
</plugin>
279+
228280
</plugins>
229281
</build>
230282
</project>

0 commit comments

Comments
 (0)