Skip to content

Commit

Permalink
Add code coverage check via cobertura-maven-plugin.
Browse files Browse the repository at this point in the history
Mandatory coverage rates are set to super low for now as not all
classes even have coverage.

https://mvnrepository.com/artifact/org.codehaus.mojo/cobertura-maven-plugin
  • Loading branch information
schwehr authored and bcl committed Mar 23, 2019
1 parent 12aede5 commit abc80ba
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,31 @@
<groupId>com.coveo</groupId>
<artifactId>fmt-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
<configuration>
<check>
<!-- Per-class thresholds -->
<!-- TODO(schwehr): Up these to maybe 60 -->
<lineRate>0</lineRate>
<branchRate>0</branchRate>
<!-- Project-wide thresholds -->
<!-- TODO(schwehr): Up these to maybe 80 -->
<totalLineRate>50</totalLineRate>
<totalBranchRate>50</totalBranchRate>
</check>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit abc80ba

Please sign in to comment.