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

Build: Assure code coverage is over 50%

parent 4278ff8f
...@@ -58,10 +58,11 @@ ...@@ -58,10 +58,11 @@
</issueManagement> </issueManagement>
<properties> <properties>
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
<skip.deploy.artifact>true</skip.deploy.artifact>
<jdk.target>11</jdk.target> <jdk.target>11</jdk.target>
<jdk.source>11</jdk.source> <jdk.source>11</jdk.source>
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
<skip.deploy.artifact>true</skip.deploy.artifact>
<jacoco.haltOnFailure>true</jacoco.haltOnFailure>
</properties> </properties>
<modules> <modules>
...@@ -165,9 +166,9 @@ ...@@ -165,9 +166,9 @@
<includes> <includes>
<include>org/genesys/**</include> <include>org/genesys/**</include>
</includes> </includes>
<!-- <excludes> <excludes>
<excludes>org/genesys/**</excludes> <excludes>org/genesys/**/model/**/Q**</excludes> <!-- Exclude generated QJPA models -->
</excludes> --> </excludes>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>
...@@ -175,6 +176,33 @@ ...@@ -175,6 +176,33 @@
<goal>prepare-agent</goal> <goal>prepare-agent</goal>
</goals> </goals>
</execution> </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>50%</minimum>
</limit>
<!-- <limit>
<counter>CLASS</counter>
<value>MISSEDCOUNT</value>
<maximum>0</maximum>
</limit> -->
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions> </executions>
</plugin> </plugin>
</plugins> </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