Skip to content

Instantly share code, notes, and snippets.

@jivimberg
Last active April 27, 2018 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jivimberg/ea79614ce9b80c29b03be8326586f238 to your computer and use it in GitHub Desktop.
Save jivimberg/ea79614ce9b80c29b03be8326586f238 to your computer and use it in GitHub Desktop.
Jacoco on Gradle - How to verify coverage
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