Skip to content

Commit

Permalink
chore: 빌드 파일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeuk520 committed Jun 1, 2024
1 parent 55b1d98 commit 3b93992
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,6 @@ tasks.named('test') {

def jacocoDir = layout.buildDirectory.dir("reports/")

def jacocoExcludePatterns = [
// 측정에서 제외하는 패턴
"**/*Application*",
"**/config/*",
"**/exception/*",
"**/security/*",
"**/support/*"
]

jacocoTestReport {
dependsOn test //테스트가 수행되어야만 report를 생성할 수 있도록 설정
reports {
Expand All @@ -87,7 +78,13 @@ jacocoTestReport {
afterEvaluate {
classDirectories.setFrom(
files(classDirectories.files.collect {
fileTree(dir: it, excludes: jacocoExcludePatterns)
fileTree(dir: it, excludes: [
"**/*Application*",
"**/config/*",
"**/exception/*",
"**/security/*",
"**/support/*"
])
})
)
}
Expand Down Expand Up @@ -120,7 +117,13 @@ jacocoTestCoverageVerification {
minimum = 0.60
}

excludes = jacocoExcludePatterns
excludes = [
"**/*Application*",
"**/config/*",
"**/exception/*",
"**/security/*",
"**/support/*"
]
}
}
}

0 comments on commit 3b93992

Please sign in to comment.