Hi Team ,

I'm doing the code coverage with jacoco plugin . I have multiple projects and 
I'm able to generate single jacoco.exe but issue is I'm unable to set the 
threshold value separately for each module . I wanted to set the threshold 
value for each module.

Here is my jacoco configuration.
  <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>default-prepare-agent</id>
            <goals>
              <goal>prepare-agent</goal>
            </goals>
          </execution>
          <execution>
            <id>default-prepare-agent-integration</id>
            <goals>
              <goal>prepare-agent-integration</goal>
            </goals>
          </execution>
          <execution>
            <id>default-report</id>
            <goals>
              <goal>report</goal>
            </goals>
          </execution>
          <execution>
            <id>default-report-integration</id>
            <goals>
              <goal>report-integration</goal>
            </goals>
          </execution>
          <execution>
            <id>default-check</id>
            <goals>
              <goal>check</goal>
            </goals>
        <configuration>
        <haltOnFailure>true</haltOnFailure>
              <!-- the build will fail if any rule check fails -->
              <!--
         * Check configuration used to specify rules on element types (BUNDLE,
         * PACKAGE, CLASS, SOURCEFILE or METHOD) with a list of limits. Each 
limit
         * applies to a certain counter (INSTRUCTION, LINE, BRANCH, COMPLEXITY,
         * METHOD, CLASS) and defines a minimum or maximum for the corresponding
         * value (TOTALCOUNT, COVEREDCOUNT, MISSEDCOUNT, COVEREDRATIO, 
MISSEDRATIO).
         * If a limit refers to a ratio the range is from 0.0 to 1.0 where the
         * number of decimal places will also determine the precision in error
         * messages. A limit ratio may optionally be declared as a percentage
         * where 0.80 and 80% represent the same value, the value must end with 
%.
              -->
              <rules>
                <rule>
                  <element>BUNDLE</element>
                            <!-- <excludes>
                                    <exclude>*Test</exclude>
                                                </excludes>
                                                  <limits>
                                                    <limit>
                                                      
<counter>INSTRUCTION</counter>
                                                      
<value>COVEREDRATIO</value>
                                                      <minimum>.95</minimum>
                                                    </limit>
                                                     <limit>
                                                      <counter>BRANCH</counter>
                                                      
<value>COVEREDRATIO</value>
                                                      <minimum>.95</minimum>
                                                    </limit>
                                                  </limits> -->
                </rule>
                <rule>
                  <element>PACKAGE</element>
                </rule>
                <rule>
                  <element>CLASS</element>
                </rule>
                <rule>
                  <element>SOURCEFILE</element>
                </rule>
                <rule>
                  <element>METHOD</element>
                </rule>
              </rules>
        </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>

I have multiple projects and I wanted to give the different value for each 
module. 
Please help on this .

Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/f8f88f01-bc68-4f38-985d-11d26b300270%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to