Skip to content

Commit 072f042

Browse files
committed
Add (very generous) code coverage gate to build
1 parent ee8031d commit 072f042

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

msal4j-sdk/pom.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,33 @@
329329
<goal>report</goal>
330330
</goals>
331331
</execution>
332+
<execution>
333+
<id>jacoco-check</id>
334+
<phase>verify</phase>
335+
<goals>
336+
<goal>check</goal>
337+
</goals>
338+
<configuration>
339+
<haltOnFailure>false</haltOnFailure>
340+
<rules>
341+
<rule>
342+
<element>BUNDLE</element>
343+
<limits>
344+
<limit>
345+
<counter>LINE</counter>
346+
<value>COVEREDRATIO</value>
347+
<minimum>0.65</minimum>
348+
</limit>
349+
<limit>
350+
<counter>BRANCH</counter>
351+
<value>COVEREDRATIO</value>
352+
<minimum>0.50</minimum>
353+
</limit>
354+
</limits>
355+
</rule>
356+
</rules>
357+
</configuration>
358+
</execution>
332359
</executions>
333360
</plugin>
334361
<plugin>

0 commit comments

Comments
 (0)