Last active
April 27, 2018 02:25
-
-
Save jivimberg/ea79614ce9b80c29b03be8326586f238 to your computer and use it in GitHub Desktop.
Jacoco on Gradle - How to verify coverage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: "jacoco” | |
jacocoTestCoverageVerification { | |
violationRules { | |
rule { | |
limit { | |
minimum = 0.79 | |
} | |
} | |
} | |
} | |
// to run coverage verification during the build (and fail when appropriate) | |
check.dependsOn jacocoTestCoverageVerification |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment