Commit d1d56b81 authored by Matija Obreza's avatar Matija Obreza
Browse files

Build: Assure code coverage is over 70%

parent 47a13bb8
......@@ -66,6 +66,7 @@
<jdk.target>11</jdk.target>
<jdk.source>11</jdk.source>
<show.deprecations>false</show.deprecations>
<jacoco.haltOnFailure>true</jacoco.haltOnFailure>
<application.blocks.version>3.0-SNAPSHOT</application.blocks.version>
......@@ -167,9 +168,9 @@
<includes>
<include>org/genesys/**</include>
</includes>
<!-- <excludes>
<excludes>org/genesys/**</excludes>
</excludes> -->
<excludes>
<excludes>org/genesys/**/model/**/Q**</excludes> <!-- Exclude generated QJPA models -->
</excludes>
</configuration>
<executions>
<execution>
......@@ -177,6 +178,33 @@
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>check-coverage</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<haltOnFailure>${jacoco.haltOnFailure}</haltOnFailure> <!-- Developer hint: mvn -Djacoco.haltOnFailure=false -P quality clean verify -->
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>INSTRUCTION</counter>
<value>COVEREDRATIO</value>
<minimum>70%</minimum>
</limit>
<!-- <limit>
<counter>CLASS</counter>
<value>MISSEDCOUNT</value>
<maximum>0</maximum>
</limit> -->
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment