xref: /aosp_15_r20/external/jacoco/jacoco-maven-plugin.test/it/it-check-fails-halt/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-fails-halt</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>CLASS</element>
46                  <includes>
47                    <include>Example</include>
48                  </includes>
49                  <limits>
50                    <limit>
51                      <counter>METHOD</counter>
52                      <value>MISSEDCOUNT</value>
53                      <maximum>0</maximum>
54                    </limit>
55                  </limits>
56                </rule>
57              </rules>
58            </configuration>
59          </execution>
60        </executions>
61      </plugin>
62    </plugins>
63  </build>
64</project>
65