Minimum code coverage threshold in Jacoco Gradle
The feature is now available. You simply need to apply the Gradle JaCoCo plugin and define coverage verification like this: apply plugin: ‘jacoco’ jacocoTestCoverageVerification { violationRules { rule { limit { minimum = 0.7 } } } } // to run coverage verification during the build (and fail when appropriate) check.dependsOn jacocoTestCoverageVerification The last line … Read more