Skip to content

Commit f20e07d

Browse files
committed
fix: enforce coverage
1 parent 0ff22ff commit f20e07d

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ clean:
1212

1313
## coverage - Test (and build) the project to generate a coverage report
1414
coverage:
15-
mvn install -Dgpg.skip=true -Dcheckstyle.skip=true -Dcheckstyle.skip=true -Ddependency-check.skip=true jacoco:report
15+
mvn verify -Dgpg.skip=true -Dcheckstyle.skip=true -Ddependency-check.skip=true -Djavadoc.skip=true jacoco:report
1616

1717
## docs - Generates library documentation
1818
docs:
19-
mvn install -DskipTests=true -Dgpg.skip=true -Dcheckstyle.skip=true -Dcheckstyle.skip=true -Ddependency-check.skip=true
19+
mvn install -DskipTests=true -Dgpg.skip=true -Dcheckstyle.skip=true -Ddependency-check.skip=true -Djavadoc.skip=true
2020
cp -R target/apidocs/ ./docs/
2121

2222
## install-checkstyle - Install CheckStyle

pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,26 @@
147147
<goal>report</goal>
148148
</goals>
149149
</execution>
150+
<execution>
151+
<id>jacoco-check</id>
152+
<goals>
153+
<goal>check</goal>
154+
</goals>
155+
<configuration>
156+
<rules>
157+
<rule>
158+
<element>BUNDLE</element>
159+
<limits>
160+
<limit>
161+
<counter>LINE</counter>
162+
<value>COVEREDRATIO</value>
163+
<minimum>0.90</minimum>
164+
</limit>
165+
</limits>
166+
</rule>
167+
</rules>
168+
</configuration>
169+
</execution>
150170
</executions>
151171
</plugin>
152172
<plugin>

0 commit comments

Comments
 (0)