Conversation
- junit-platform-launcher 의존성 추가 - junit-jupiter-engine을 testRuntimeOnly로 변경
WalkthroughGradle 테스트 의존성 구성이 변경되었습니다. junit-jupiter-engine 의존성이 testImplementation에서 testRuntimeOnly로 전환되었고, junit-platform-launcher가 testRuntimeOnly로 추가되었습니다. 이에 따라 JUnit Jupiter 엔진과 런처는 테스트 런타임 범위에서만 해상·사용되며, 테스트 컴파일 클래스패스에서는 제외됩니다. 공개 API 변경은 없습니다. Pre-merge checks✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🧪 Early access (Sonnet 4.5): enabledWe are currently testing the Sonnet 4.5 model, which is expected to improve code review quality. However, this model may lead to increased noise levels in the review comments. Please disable the early access features if the noise level causes any inconvenience. Note:
Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
app/build.gradle (1)
34-35: 변경 사항이 올바르며 문제를 해결합니다.JUnit 테스트 실행 실패 문제를 올바르게 수정했습니다:
junit-jupiter-engine을testRuntimeOnly로 변경한 것은 JUnit 5 사용자 가이드의 권장사항과 일치합니다.junit-platform-launcher를 추가한 것은 PR 설명에 언급된JUnitException문제를 해결합니다.참고:
junit-platform-launcher에 명시적 버전을 지정하지 않았는데, Gradle이 다른 JUnit 의존성으로부터 버전을 정렬하므로 기술적으로는 문제없습니다. 하지만 이 파일의 다른 의존성들(line 31-34)과의 일관성을 위해 명시적 버전 지정을 고려해볼 수 있습니다.선택적으로 일관성을 위해 다음과 같이 수정할 수 있습니다:
- testRuntimeOnly 'org.junit.platform:junit-platform-launcher' + testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.13.4'
문제 상황
테스트 실행 시 아래와 같은 예외가 발생했습니다.
해결 방법
추가 개선 사항
https://docs.junit.org/current/user-guide/#running-tests-build-gradle
