Skip to content

Commit

Permalink
feat(CI): Test Reporter 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
limehee committed Dec 6, 2024
1 parent 86e8dde commit a237635
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,17 @@ jobs:
with:
name: test-results
path: '**/build/reports/tests/test/*'

- name: Test Reporter
uses: dorny/[email protected]
if: success() || failure()
with:
name: 'Spring Boot Tests'
path: '**/build/test-results/test/*.xml'
reporter: 'java-junit'
only-summary: 'false'
list-suites: 'all'
list-tests: 'all'
max-annotations: '50'
fail-on-error: 'true'
fail-on-empty: 'true'
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ allprojects {

tasks.named<Test>("test") {
useJUnitPlatform()

reports {
junitXml.required.set(true)
}
}

tasks.withType<JavaExec> {
Expand Down

0 comments on commit a237635

Please sign in to comment.