Cobertura in Jenkins always gets 0% coverage
Some facts:
- I'm using jenkins with Cobertura.
- I have a multi-module Android project, one module is for testing and the other is the actual bl.
- I'm using jdk 1.6.22.
- I'm running clean pmd:pmd package cobertura:cobertura
- My pom file for the testing module contains:
...
<dependency>
<groupId>com.realw</groupId>
<artifactId>widget</artifactId>
<type>apk</type>
<version>0.0.1-SNAPSHOT</version'>
</dependency>
<dependency>
<groupId>com.realw</groupId>
<artifactId>widget</artifactId>
<type>jar</type>
<scope>provided</scope>
<version>0.0.1-SNAPSHOT</version>
</dependency></pre>
...
<build>
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<instrumentation>
<ignores>
<ignore>com.realw.bl.test.*</ignore>
</ignores>
</instrumentation>
</configuration>
</plugin>
开发者_开发知识库
I've followed the various tutorials and read the posts here, no luck.
I'm sure I'm missing something in the configuration.
Thanks.
精彩评论