开发者

Hudson and Clover Plugin

开发者 https://www.devze.com 2023-02-14 21:09 出处:网络
We are using the Clover plugin on Hudson. Is it possible to set a property开发者_运维问答 on hudson to exclude certain files / packages from being analyzed by clover?

We are using the Clover plugin on Hudson. Is it possible to set a property开发者_运维问答 on hudson to exclude certain files / packages from being analyzed by clover? I was looking at the project documentation but didnt come across anything in relation to properties

Thanks Damien


Are you using Maven? If so, I think Hudson (or Jenkins) will be use the maven plugin configuration to determine which classes to exclude. You simply configure a set of RegEx expressions that you want to exclude from instrumentation. In a similar way to the example below:

<plugin>
    <groupId>com.atlassian.maven.plugins</groupId>
    <artifactId>maven-clover2-plugin</artifactId>
    <configuration>
      </includes>
      <excludes>
        <exclude>**/*Test/java</exclude>
        [...]
      </excludes>
     [...]
</plugin>

Hope that helps you out...

0

精彩评论

暂无评论...
验证码 换一张
取 消