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