Skip to content

Commit

Permalink
Merge pull request #69 from Team-INSERT/test/#68
Browse files Browse the repository at this point in the history
Test/#68
  • Loading branch information
hw9402 authored Apr 8, 2024
2 parents cc11e57 + 6902231 commit b027e19
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,47 @@ sonarqube {
property "sonar.java.checkstyle.reportPaths", "build/reports/checkstyle/main.xml"
}
}

jacoco {
toolVersion = '0.8.12'
}

tasks.named('test') {
useJUnitPlatform()

finalizedBy jacocoTestReport
}

//sonarCloud testCoverage
jacocoTestReport {
dependsOn test
reports {
html.required = true
xml.required = true
}

def QDomains = []

for (qPattern in '**/QA'..'**/QZ') {
QDomains.add(qPattern + '*')
}

afterEvaluate {
classDirectories.setFrom(
files(classDirectories.files.collect {
fileTree(dir: it, excludes: [
"com.project.bumawiki.BumawikiApplication",
"**.*Config*",
"**.*Exception*",
"**.*Dto*"
] + QDomains)
})
)
}

finalizedBy jacocoTestCoverageVerification
}

//plain jar 비활성화
jar {
enabled = false
Expand Down

0 comments on commit b027e19

Please sign in to comment.