Caused by: java.lang.ClassNotFoundException
Junit5 테스트하려고 할 때 해당 오류가 떴습니다
구글링을 해봐도 답이안나왔었는데..
Edit configuration에서
@argfile(Java 9+) -> JAR manifest로 수정했더니
정상적으로 작동합니다
대부분의 경우는..
1. Setting 변경
2. 파일이름을 *Test / *Tests / Test* 로 수정하기
3. useJUnitPlatform() 넣기
test {
useJUnitPlatform()
}
4. dependency 맞추기(또는 낮추기)
org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests
I wan to implement a Junit 5 test into Gradle project. I tried this: Gradle configuration: plugins { id 'org.springframework.boot' version '2.5.5' id 'io.spring.dependency-management' versi...
stackoverflow.com
위 넷 중 하나로 해결될것같습니다
'프로젝트' 카테고리의 다른 글
vscode python c module print 하기 (0) | 2023.04.24 |
---|---|
C 언어 포인터 (0) | 2023.04.03 |
Java - Static Block / Instance Block (0) | 2023.01.21 |
springBoot 배포 준비 - java,war [Intellij] (5) | 2023.01.03 |
개인노트북 인터넷에 웹서버 노출시키기 (2) | 2022.12.29 |