Last active
January 23, 2020 16:11
-
-
Save th-deng/ef29a14a02b6c892eaf5399062563698 to your computer and use it in GitHub Desktop.
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