Skip to content

Commit 9ab89e6

Browse files
authored
Added code coverage reports and verify phase checks (#2004)
1 parent f843417 commit 9ab89e6

4 files changed

Lines changed: 105 additions & 0 deletions

File tree

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,12 @@
220220
<version>2.7.0</version>
221221
</plugin>
222222

223+
<plugin>
224+
<groupId>org.jacoco</groupId>
225+
<artifactId>jacoco-maven-plugin</artifactId>
226+
<version>0.8.14</version>
227+
</plugin>
228+
223229
</plugins>
224230
</pluginManagement>
225231

toolbox/pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,39 @@
201201
</executions>
202202
</plugin>
203203

204+
<plugin>
205+
<groupId>org.jacoco</groupId>
206+
<artifactId>jacoco-maven-plugin</artifactId>
207+
<executions>
208+
<execution>
209+
<id>prepare-agent</id>
210+
<goals>
211+
<goal>prepare-agent</goal>
212+
</goals>
213+
</execution>
214+
<execution>
215+
<id>check-coverage</id>
216+
<goals>
217+
<goal>check</goal>
218+
</goals>
219+
<configuration>
220+
<rules>
221+
<rule>
222+
<element>BUNDLE</element>
223+
<limits>
224+
<limit>
225+
<counter>LINE</counter>
226+
<value>COVEREDRATIO</value>
227+
<minimum>0.58</minimum>
228+
</limit>
229+
</limits>
230+
</rule>
231+
</rules>
232+
</configuration>
233+
</execution>
234+
</executions>
235+
</plugin>
236+
204237
</plugins>
205238
</build>
206239

vuu-java/pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,39 @@
9999
</executions>
100100
</plugin>
101101

102+
<plugin>
103+
<groupId>org.jacoco</groupId>
104+
<artifactId>jacoco-maven-plugin</artifactId>
105+
<executions>
106+
<execution>
107+
<id>prepare-agent</id>
108+
<goals>
109+
<goal>prepare-agent</goal>
110+
</goals>
111+
</execution>
112+
<execution>
113+
<id>check-coverage</id>
114+
<goals>
115+
<goal>check</goal>
116+
</goals>
117+
<configuration>
118+
<rules>
119+
<rule>
120+
<element>BUNDLE</element>
121+
<limits>
122+
<limit>
123+
<counter>LINE</counter>
124+
<value>COVEREDRATIO</value>
125+
<minimum>0.76</minimum>
126+
</limit>
127+
</limits>
128+
</rule>
129+
</rules>
130+
</configuration>
131+
</execution>
132+
</executions>
133+
</plugin>
134+
102135
</plugins>
103136
</build>
104137

vuu/pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,39 @@
321321
</configuration>
322322
</plugin>
323323

324+
<plugin>
325+
<groupId>org.jacoco</groupId>
326+
<artifactId>jacoco-maven-plugin</artifactId>
327+
<executions>
328+
<execution>
329+
<id>prepare-agent</id>
330+
<goals>
331+
<goal>prepare-agent</goal>
332+
</goals>
333+
</execution>
334+
<execution>
335+
<id>check-coverage</id>
336+
<goals>
337+
<goal>check</goal>
338+
</goals>
339+
<configuration>
340+
<rules>
341+
<rule>
342+
<element>BUNDLE</element>
343+
<limits>
344+
<limit>
345+
<counter>LINE</counter>
346+
<value>COVEREDRATIO</value>
347+
<minimum>0.75</minimum>
348+
</limit>
349+
</limits>
350+
</rule>
351+
</rules>
352+
</configuration>
353+
</execution>
354+
</executions>
355+
</plugin>
356+
324357
</plugins>
325358
</build>
326359

0 commit comments

Comments
 (0)