1

一些事实:

  1. 我正在将詹金斯与 Cobertura 一起使用。
  2. 我有一个多模块 Android 项目,一个模块用于测试,另一个是实际的 bl。
  3. 我正在使用 jdk 1.6.22。
  4. 我正在运行干净的 pmd:pmd 包 cobertura:cobertura
  5. 我的测试模块的 pom 文件包含:


  ...
<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>

我已经按照各种教程阅读了这里的帖子,但没有运气。

我确定我在配置中遗漏了一些东西。

谢谢。

4

0 回答 0