You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.
Add a Maven Mojo (could be called CheckMojo) that can stop the build if the Test Percentage Coverage (TPC) is below a given value, specified as a configuration in the project's pom.xml.
For example Clover does this:
<plugins>
<!-- Fail the build if the test coverage is below a given value. -->
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-clover2-plugin</artifactId>
<configuration>
<!-- Note that the overall TPC when including functional tests for this module is around 78% -->
<targetPercentage>${xwiki.clover.targetPercentage}%</targetPercentage>
</configuration>
<executions>
<execution>
<id>clover-check</id>
<phase>verify</phase>
<goals>
<goal>instrument-test</goal>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
That would help a lot...
The text was updated successfully, but these errors were encountered:
Indeed I've used the wrong project (that's why I was surprised to not find an existing issue about this topic!), sorry about that and thanks for referencing the existing issue...
Add a Maven Mojo (could be called CheckMojo) that can stop the build if the Test Percentage Coverage (TPC) is below a given value, specified as a configuration in the project's pom.xml.
For example Clover does this:
That would help a lot...
The text was updated successfully, but these errors were encountered: