<?xml version='1.0' encoding='utf-8'?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.mulesoft</groupId>
        <artifactId>munit</artifactId>
        <version>2.0.0</version>
    </parent>
    <groupId>com.mulesoft.munit</groupId>
    <artifactId>munit-core</artifactId>
    <packaging>pom</packaging>

    <name>MUnit :: Core Module</name>
    <description>Multimodule project containing the base of the MUnit modules</description>

    <properties>
        <licensePath>../LICENSE_HEADER.txt</licensePath>
    </properties>

    <modules>
        <module>munit-common</module>
        <module>munit-assert</module>
        <module>munit-mock</module>
        <module>munit-runner</module>
        <module>munit-tools</module>
        <module>munit-runtime</module>
    </modules>

    <build>
        <plugins>
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>${jacoco.version}</version>
                <configuration>
                    <haltOnFailure>true</haltOnFailure>
                    <rules>
                        <rule>
                            <element>BUNDLE</element>
                            <excludes>
                                <exclude>org/mule/munit/runner/java/JunitTestSuiteBuilder.class</exclude>
                                <exclude>org/mule/munit/runner/mule/result/notification/DummyNotificationListener.class</exclude>
                                <exclude>org/mule/munit/runner/output/LogPrinter.class</exclude>
                                <exclude>org/mule/munit/runner/MunitLoggerConfigurer.class</exclude>
                                <!--Improve tests over this package-->
                                <exclude>org/mule/munit/common/adapters/*.class</exclude>
                                <exclude>org/mule/munit/runner/remote/*.class</exclude>
                                <exclude>org/mule/munit/runner/mule/context/*.class</exclude>
                                <exclude>org/mule/munit/assertion/mel/utils/*.class</exclude>
                                <exclude>org/mule/munit/runner/remote/api/*.class</exclude>
                            </excludes>
                            <!--<limits>-->
                            <!--<limit>-->
                            <!--<counter>BRANCH</counter>-->
                            <!--<value>COVEREDRATIO</value>-->
                            <!--&lt;!&ndash;<minimum>0.43</minimum>&ndash;&gt;-->
                            <!--<minimum>0.42</minimum>-->
                            <!--</limit>-->
                            <!--<limit>-->
                            <!--<counter>INSTRUCTION</counter>-->
                            <!--<value>COVEREDRATIO</value>-->
                            <!--<minimum>0.43</minimum>-->
                            <!--</limit>-->
                            <!--<limit>-->
                            <!--<counter>LINE</counter>-->
                            <!--<value>COVEREDRATIO</value>-->
                            <!--&lt;!&ndash;<minimum>0.55</minimum>&ndash;&gt;-->
                            <!--<minimum>0.53</minimum>-->
                            <!--</limit>-->
                            <!--</limits>-->
                            <!--Previous coverage limits-->
                            <!--<lineRate>71</lineRate>-->
                            <!--<branchRate>60</branchRate>-->
                            <!--<packageLineRate>78</packageLineRate>-->
                            <!--<packageBranchRate>70</packageBranchRate>-->
                            <!--<totalLineRate>86</totalLineRate>-->
                            <!--<totalBranchRate>75</totalBranchRate>-->
                        </rule>
                    </rules>
                </configuration>
                <executions>
                    <execution>
                        <id>default-prepare-agent</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>default-report</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>default-check</id>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>

    </build>
</project>
