[java-metadata-aggregator] 02/02: MDA-65 - Initial experimental JaCoCo setup to look at test coverage
Ian Young
ian at iay.org.uk
Fri Aug 21 13:27:01 UTC 2020
This is an automated email from the git hooks/post-receive script.
iay pushed a commit to branch main
in repository java-metadata-aggregator.
View the commit online:
http://git.shibboleth.net/view/?p=java-metadata-aggregator.git;a=commit;h=bc3e82209d5312f7e75420d1d1abd473082349bc
commit bc3e82209d5312f7e75420d1d1abd473082349bc
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Fri Aug 21 14:26:48 2020 +0100
MDA-65 - Initial experimental JaCoCo setup to look at test coverage
https://issues.shibboleth.net/jira/browse/MDA-65
---
aggregator-pipeline/pom.xml | 86 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 86 insertions(+)
diff --git a/aggregator-pipeline/pom.xml b/aggregator-pipeline/pom.xml
index a3da99a..39a90d5 100644
--- a/aggregator-pipeline/pom.xml
+++ b/aggregator-pipeline/pom.xml
@@ -101,6 +101,7 @@
</dependencies>
<build>
+
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -124,9 +125,94 @@
</archive>
</configuration>
</plugin>
+
+ <plugin>
+ <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-report</id>
+ <phase>test</phase>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>default-check</id>
+ <!-- check goal is by default bound to verify phase -->
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <configuration>
+ <!-- We don't meet these constraints yet. -->
+ <haltOnFailure>false</haltOnFailure>
+ <rules>
+ <!-- Overall coverage rules. -->
+ <rule>
+ <element>BUNDLE</element>
+ <limits>
+ <limit>
+ <counter>INSTRUCTION</counter>
+ <value>COVEREDRATIO</value>
+ <minimum>80%</minimum>
+ </limit>
+ <limit>
+ <counter>CLASS</counter>
+ <value>MISSEDCOUNT</value>
+ <maximum>0</maximum>
+ </limit>
+ </limits>
+ </rule>
+ <!-- Package level coverage. -->
+ <rule>
+ <element>PACKAGE</element>
+ <limits>
+ <limit>
+ <counter>INSTRUCTION</counter>
+ <value>COVEREDRATIO</value>
+ <minimum>80%</minimum>
+ </limit>
+ <limit>
+ <counter>CLASS</counter>
+ <value>MISSEDCOUNT</value>
+ <maximum>0</maximum>
+ </limit>
+ </limits>
+ </rule>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
</plugins>
</build>
+ <reporting>
+ <plugins>
+
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <!-- select non-aggregate reports -->
+ <report>report</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+
+ </plugins>
+ </reporting>
+
<distributionManagement>
<site>
<id>site</id>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list