Skip to content

Commit 9bbea05

Browse files
committed
chore: jacoco ์„ค์ •
1 parent cef6842 commit 9bbea05

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

โ€Žbuild.gradleโ€Ž

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44
id 'org.asciidoctor.convert' version '1.5.8'
55
id "com.ewerk.gradle.plugins.querydsl" version "1.0.10"
66
id 'java'
7+
id 'jacoco'
78
}
89

910
group = 'org.ahpuh'
@@ -77,9 +78,31 @@ configurations {
7778
test {
7879
outputs.dir snippetsDir
7980
useJUnitPlatform()
81+
finalizedBy 'jacocoTestReport'
8082
}
8183

8284
asciidoctor {
8385
inputs.dir snippetsDir
8486
dependsOn test
8587
}
88+
89+
jacocoTestReport {
90+
finalizedBy 'jacocoTestCoverageVerification'
91+
}
92+
93+
jacocoTestCoverageVerification {
94+
violationRules {
95+
rule {
96+
enabled = true
97+
element = 'BUNDLE'
98+
99+
limit {
100+
counter = 'LINE'
101+
value = 'COVEREDRATIO'
102+
minimum = 0.50
103+
}
104+
105+
excludes = []
106+
}
107+
}
108+
}

0 commit comments

Comments
ย (0)