티스토리 뷰

반응형

오늘도 디버깅의 늪에 허덕이는 dandev다😂

 

과연 어떤 에러였으며 어떻게 해결했을지 같이 알아보자. 

 


✔ 에러메시지

에러 메세지

 

✔ 에러메시지 내용

 

 Execution failed for task ':test'. > No tests found for given includes: [com.example.jpasbook.member.MemberServiceTest](filter.includeTestsMatching) * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights.

 

처음에는 test케이스를 못찾는 이유가 뭘까..?

경로 문제인가,, 한참 고민하다

JUnit5 설정했을때 나는 에러임을 확인하고 다음과 같이 디버깅했다.

 

 

해결방법 😊

1. [File] - [Settings] - [Build, Execution, Deployment] - [Gradle]을 들어간다.

2. Run tests using 옵션에 'IntelliJ IDEA' 를 선택한다.

 

설정 변경

 

확인 후 다시 실행하니 문제 없이 실행되었다.

 

제대로 실행함.

 


에러는 진짜,,, 끝이 없다..

어쩔 수 없다

더 열심히 공부하자. 🔥

반응형