diff options
Diffstat (limited to '')
| -rw-r--r-- | pom.xml | 87 |
1 files changed, 85 insertions, 2 deletions
@@ -1,5 +1,6 @@ -<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/maven-v4_0_0.xsd"> +<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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>design</groupId> <artifactId>design</artifactId> @@ -61,6 +62,88 @@ <!-- JUnit 5 requires Surefire version 2.22.0 or higher --> <version>3.0.0-M8</version> </plugin> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.8.11</version> + <configuration> + <destfile>/target/coverage-reports/jacoco-unit.exec</destfile> + <datafile>/target/coverage-reports/jacoco-unit.exec</datafile> + </configuration> + <executions> + <execution> + <id>jacoco-initialize</id> + <configuration> + <!-- throw away the old data with each test run --> + <append>false</append> + </configuration> + <goals> + <goal>prepare-agent</goal> + </goals> + </execution> + <!-- attached to Maven test phase --> + <execution> + <id>report</id> + <phase>test</phase> + <goals> + <goal>report</goal> + </goals> + </execution> + <execution> + <id>controller</id> + <configuration> + <footer>Controller Tier</footer> + <title>U-Fund API Controller Tier Test Coverage</title> + <outputDirectory>target/site/jacoco/controller</outputDirectory> + </configuration> + <goals> + <goal>report</goal> + </goals> + </execution> + <execution> + <id>persistence</id> + <configuration> + <footer>Persistence Tier</footer> + <title>U-Fund API Persistence Tier Test Coverage</title> + <outputDirectory>target/site/jacoco/persistence</outputDirectory> + </configuration> + <goals> + <goal>report</goal> + </goals> + </execution> + <execution> + <id>model</id> + <configuration> + <footer>Model Tier</footer> + <title>U-Fund API Model Tier Test Coverage</title> + <outputDirectory>target/site/jacoco/model</outputDirectory> + </configuration> + <goals> + <goal>report</goal> + </goals> + </execution> + <execution> + <id>jacoco-check</id> + <goals> + <goal>check</goal> + </goals> + <configuration> + <rules> + <rule> + <element>BUNDLE</element> + <limits> + <limit> + <counter>INSTRUCTION</counter> + <value>COVEREDRATIO</value> + <minimum>0.90</minimum> + </limit> + </limits> + </rule> + </rules> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project>
\ No newline at end of file |
