Skip to content

Instantly share code, notes, and snippets.

@atishn
Created August 1, 2014 19:23
Show Gist options
  • Save atishn/22530a7663741b8b933e to your computer and use it in GitHub Desktop.
Save atishn/22530a7663741b8b933e to your computer and use it in GitHub Desktop.
Jacoco Configuration
<?xml version="1.0" encoding="UTF-8"?>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.6.4.201312101107</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<excludes>
<exclude>**/com/third-party/**</exclude>
<exclude>**/com/xxxxx/web/model/**</exclude>
<exclude>**/com/xxxxx/web/content/model/**</exclude>
<exclude>**/com/xxxx/web/exceptions/**</exclude>
</excludes>
</configuration>
</execution>
<execution>
<id>check</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<excludes>
<exclude>**/com/third-party/**</exclude>
</excludes>
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>COMPLEXITY</counter>
<value>COVEREDRATIO</value>
<minimum>0.50</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment