Skip to content

Instantly share code, notes, and snippets.

@th-deng
Last active Jan 23, 2020
Embed
What would you like to do?
Exclude classes from coverage violation rules
// groovy DSL
jacocoTestCoverageVerification {
violationRules {
rule {
element = 'CLASS'
limit {
counter = 'LINE'
value = 'TOTALCOUNT'
maximum = 8
}
// 커버리지 체크를 제외할 클래스들
excludes = [
// '*.test.*',
'*.Kotlin*'
]
}
}
}
// kotlin DSL
tasks.jacocoTestCoverageVerification {
violationRules {
rule {
element = "CLASS"
limit {
counter = "LINE"
value = "TOTALCOUNT"
maximum = "8".toBigDecimal()
}
// 커버리지 체크를 제외할 클래스들
excludes = listOf(
// "*.test.*",
"*.Kotlin*"
)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment