Hi All,

Recently, I requested an open source license for the code coverage tool Clover 
and is has now been added to our Bamboo. An example of such a code coverage 
report can be found here:

http://bamboo.amdatu.org/bamboo/browse/AMDATU-AMDCASTRUNK-202/artifact/JOB1/Clover-Report-%28System%29/index.html

To configure Clover for your project, execute the following steps:


*         Append this plugin to build/plugins in your root pom.xml:

<plugin>

  <groupId>com.atlassian.maven.plugins</groupId>

  <artifactId>maven-clover2-plugin</artifactId>

  <version>3.1.3</version>

</plugin>

*         You might want to exclude some packages from code coverage 
inspection, add these like this:

<configuration>
     <excludes>
       <!-- Exclude test files from code coverage report -->
       <exclude>**/org/amdatu/test/**/*.java</exclude>
       <exclude>**/org/amdatu/cassandra/test/integration/**/*.java</exclude>
     </excludes>
   </configuration>

*         In the build plan on Bamboo add a Maven2 task to the Job (Configure 
Plan/Select job/Select 'Tasks' tab) with the following settings:

Executable: Maven 2.2.1

Goal: -e -Dmaven.repo.local=/vol/www/bamboo/build/maven-repository 
-Djava.io.tmpdir=/vol/www/bamboo/xml-data/build-dir/${bamboo.buildKey}/target 
-s 
/vol/www/bamboo/xml-data/build-dir/${bamboo.buildKey}/maven-settings-bamboo.xml 
-Dmaven.clover.licenseLocation=/vol/www/bamboo/clover/clover.license 
clover2:setup test clover2:aggregate clover2:clover

*         Do not enable the 'automatic integration' flag for Clover 
('Miscellaneous' tab of Job configuration), it will cause compile errors and 
append undesired package imports & exports to the generated OSGi bundles.

Regards, Ivo


GX Software | Ivo Ladage-van Doorn | Product Architect | Wijchenseweg 111 | 
6538 SW Nijmegen | The Netherlands | T +31(0)24 - 388 82 61 | F +31(0)24 - 388 
86 21 | 
[email protected]<mailto:[email protected]> | 
www.gxsoftware.com<http://www.gxsoftware.com> | 
twitter.com/GXSoftware<http://twitter.com/GXSoftware>

_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers

Reply via email to