Home | History | Annotate | Download | only in it-check-passes
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3    Copyright (c) 2009, 2015 Mountainminds GmbH & Co. KG and Contributors
      4    All rights reserved. This program and the accompanying materials
      5    are made available under the terms of the Eclipse Public License v1.0
      6    which accompanies this distribution, and is available at
      7    http://www.eclipse.org/legal/epl-v10.html
      8 
      9    Contributors:
     10       Evgeny Mandrikov - initial API and implementation
     11       Kyle Lieber - implementation of CheckMojo
     12 -->
     13 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     14          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     15   <modelVersion>4.0.0</modelVersion>
     16 
     17   <parent>
     18     <groupId>jacoco</groupId>
     19     <artifactId>setup-parent</artifactId>
     20     <version>1.0-SNAPSHOT</version>
     21   </parent>
     22 
     23   <artifactId>it-check-passes</artifactId>
     24 
     25   <build>
     26     <plugins>
     27       <plugin>
     28         <groupId>@project.groupId@</groupId>
     29         <artifactId>jacoco-maven-plugin</artifactId>
     30         <executions>
     31           <execution>
     32             <goals>
     33               <goal>prepare-agent</goal>
     34             </goals>
     35           </execution>
     36           <execution>
     37             <id>check</id>
     38             <goals>
     39               <goal>check</goal>
     40             </goals>
     41             <configuration>
     42               <rules>
     43                 <!-- implementation is needed only for Maven 2 -->
     44                 <rule implementation="org.jacoco.maven.RuleConfiguration">
     45                   <element>BUNDLE</element>
     46                   <limits>
     47                     <!-- implementation is needed only for Maven 2 -->
     48                     <limit implementation="org.jacoco.report.check.Limit">
     49                       <counter>INSTRUCTION</counter>
     50                       <value>COVEREDRATIO</value>
     51                       <minimum>0.90</minimum>
     52                     </limit>
     53                     <!-- implmentation is needed only for Maven 2 -->
     54                     <limit implementation="org.jacoco.report.check.Limit">
     55                       <counter>CLASS</counter>
     56                       <value>MISSEDCOUNT</value>
     57                       <maximum>0</maximum>
     58                     </limit>
     59                   </limits>
     60                 </rule>
     61               </rules>
     62             </configuration>
     63           </execution>
     64         </executions>
     65       </plugin>
     66     </plugins>
     67   </build>
     68 </project>
     69