Skip to content

Commit

Permalink
[Test] : jacoco 테스트 결과 xml로
Browse files Browse the repository at this point in the history
  • Loading branch information
wellbeing-dough committed Jan 20, 2024
1 parent 2fe5102 commit e5fd25b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
id: jacoco
uses: madrapps/[email protected]
with:
paths: ${{ github.workspace }}/build/reports/jacoco/test/index.html
paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml
token: ${{ secrets.GITHUB_TOKEN }}
title: "테스트 커버리지 측정"
min-coverage-overall: 30
Expand Down
9 changes: 8 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,15 @@ tasks.named('test') {
finalizedBy jacocoTestReport // 테스트 종료후 항상 리포트 생성
}

jacoco {
toolVersion = "0.8.8"
}

jacocoTestReport {
dependsOn test // 리포트 생성을 위해서는 test가 먼저 완료되어야 함
dependsOn test
reports {
xml.required.set(true)
}
}

jar {
Expand Down

0 comments on commit e5fd25b

Please sign in to comment.