Skip to content

Instantly share code, notes, and snippets.

@jivimberg
Created April 27, 2018 05:47
Show Gist options
  • Save jivimberg/0962942885d4db41a9dad890aba5d225 to your computer and use it in GitHub Desktop.
Save jivimberg/0962942885d4db41a9dad890aba5d225 to your computer and use it in GitHub Desktop.
Jacoco on Gradle - How to verify coverage with exclusions - WRONG
jacocoTestCoverageVerification {
violationRules {
rule {
excludes = [
'com/example/my/package/*',
'com/example/service/MyApplication.kt',
'com/google/protobuf/*'
]
limit {
minimum = 0.79
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment