Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
add cobertura exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Sep 26, 2012
1 parent c8ac5a6 commit 785b89c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functional-test/pom.xml
Expand Up @@ -250,7 +250,7 @@
<configuration>
<instrumentation>
<excludes>
<exclude>/**/*</exclude>
<exclude>**/*</exclude>
</excludes>
</instrumentation>
<check>
Expand Down
24 changes: 24 additions & 0 deletions zanata-model/pom.xml
Expand Up @@ -40,6 +40,30 @@
</archive>
</configuration>
</plugin>

<!-- basically we only want to test validators-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<instrumentation>
<excludes>
<exclude>**/test/**/*</exclude>
<exclude>**/hibernate/**/*</exclude>
<exclude>**/util/*</exclude>
<exclude>**/model/po/*</exclude>
<exclude>**/model/security/*</exclude>
<exclude>**/model/type/*</exclude>
<exclude>**/model/*</exclude>
</excludes>
</instrumentation>
<check>
<totalBranchRate>${cobertura.total-branch-rate}</totalBranchRate>
<totalLineRate>${cobertura.total-line-rate}</totalLineRate>
<haltOnFailure>${cobertura.halt.failure}</haltOnFailure>
</check>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
2 changes: 1 addition & 1 deletion zanata-war/pom.xml
Expand Up @@ -238,7 +238,7 @@
<exclude>**/client/rpc/**</exclude>
<exclude>**/client/ui/**</exclude>
<exclude>**/client/view/**</exclude>
<exclude>**/*OkapiUtil*</exclude>
<exclude>**/EventWrapperImpl*</exclude>
<exclude>**/*DataProvider*</exclude>
<exclude>**/*SelectionModel*</exclude>
<!--below are some trivial classes(java bean) at the moment-->
Expand Down

0 comments on commit 785b89c

Please sign in to comment.