Skip to content

Commit

Permalink
Merge pull request #479 from fredoboulo/improvement/coverage
Browse files Browse the repository at this point in the history
Added optional jacoco coverage
  • Loading branch information
c-rack authored Sep 12, 2017
2 parents 5228a76 + 225a521 commit 95473ac
Show file tree
Hide file tree
Showing 23 changed files with 1,427 additions and 271 deletions.
62 changes: 57 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.zeromq</groupId>
<artifactId>jnacl</artifactId>
<version>0.1.0</version>
</dependency>
<dependency>
<groupId>org.zeromq</groupId>
<artifactId>jnacl</artifactId>
<version>0.1.0</version>
</dependency>
</dependencies>
<distributionManagement>
<snapshotRepository>
Expand Down Expand Up @@ -180,6 +180,58 @@
</pluginManagement>
</build>
<profiles>
<profile>
<id>coverage</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.9</version>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>default-report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>default-check</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<rules>
<!-- implementation is needed only for Maven 2 -->
<rule implementation="org.jacoco.maven.RuleConfiguration">
<element>BUNDLE</element>
<limits>
<!-- implementation is needed only for Maven 2 -->
<limit implementation="org.jacoco.report.check.Limit">
<counter>COMPLEXITY</counter>
<value>COVEREDRATIO</value>
<minimum>0.60</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>doclint-java8-disable</id>
<activation>
Expand Down
Loading

0 comments on commit 95473ac

Please sign in to comment.