Skip to content

Commit

Permalink
[SAMBAD-158]-refactor: build.gradle에 violationRules 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeHanEum committed Jul 25, 2024
1 parent d1128fd commit f0d4fe5
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,29 @@ tasks.named('test') {
}

jacocoTestReport {
dependsOn test
reports {
html.required.set(true)
xml.required.set(true)
csv.required.set(false)
xml.required = true
}
finalizedBy 'jacocoTestCoverageVerification'
}

jacocoTestCoverageVerification {
violationRules {
rule {
element = 'CLASS'
enabled = true

limit {
counter = 'LINE'
value = 'COVEREDRATIO'
minimum = 0.70
}
limit {
counter = 'METHOD'
value = 'COVEREDRATIO'
minimum = 0.70
}
}
}
}

0 comments on commit f0d4fe5

Please sign in to comment.