Permalink
Browse files

#33 Implement Clover test coverage tool.

  • Loading branch information...
1 parent 97d3783 commit 9012dd78580ec094e95b002c9332e4dd0cc0c9f7 @gregrluck gregrluck committed Oct 31, 2013
Showing with 30 additions and 0 deletions.
  1. +4 −0 checkstyle/suppressions.xml
  2. +26 −0 pom.xml
@@ -15,6 +15,7 @@
<suppress checks="WhitespaceAround" files="[\\/]annotation[\\/]"/>
<suppress checks="ParenPad" files="[\\/]annotation[\\/]"/>
+
<suppress checks="MagicNumber" files=""/>
<suppress checks="NPathComplexity" files="MutableCacheEntryListenerConfiguration.java"/>
@@ -23,4 +24,7 @@
<suppress checks="NPathComplexity" files="MutableConfiguration.java"/>
<suppress checks="IllegalType" files="Caching.java"/>
+
+ <!--Exclude Clover instrumented sources-->
+ <suppress checks="" files="[\\/]src-instrumented[\\/]"/>
</suppressions>
View
@@ -168,6 +168,23 @@
</configuration>
</plugin>
+ <!--
+ To run a build with clover instrumentation:
+ mvn clean com.atlassian.maven.plugins:maven-clover2-plugin:setup install
+
+ To run the clover report:
+ mvn com.atlassian.maven.plugins:maven-clover2-plugin:clover
+ -->
+ <plugin>
+ <groupId>com.atlassian.maven.plugins</groupId>
+ <artifactId>maven-clover2-plugin</artifactId>
+ <version>3.2.0</version>
+ <configuration>
+ <cloverDatabase>${java.io.tmpdir}/clover/clover.db</cloverDatabase>
+ <singleCloverDatabase>true</singleCloverDatabase>
+ </configuration>
+ </plugin>
+
</plugins>
</build>
@@ -272,6 +289,15 @@
<artifactId>maven-jxr-plugin</artifactId>
<version>2.3</version>
</plugin>
+
+ <!--<plugin>-->
+ <!--<groupId>com.atlassian.maven.plugins</groupId>-->
+ <!--<artifactId>maven-clover2-plugin</artifactId>-->
+ <!--<version>3.1.12.1</version>-->
+ <!--<configuration>-->
+ <!--<cloverDatabase>${java.io.tmpdir}/clover/clover.db</cloverDatabase>-->
+ <!--</configuration>-->
+ <!--</plugin>-->
</plugins>
</reporting>

0 comments on commit 9012dd7

Please sign in to comment.