Exclude classes from coverage violation rules
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
// groovy DSL | |
jacocoTestCoverageVerification { | |
violationRules { | |
rule { | |
element = 'CLASS' | |
limit { | |
counter = 'LINE' | |
value = 'TOTALCOUNT' | |
maximum = 8 | |
} | |
// 커버리지 체크를 제외할 클래스들 | |
excludes = [ | |
// '*.test.*', | |
'*.Kotlin*' | |
] | |
} | |
} | |
} |
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
// 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