본문 바로가기
Spring boot

[Intellij error] No tests found for given includes

by Kwoncorin 2021. 6. 24.
728x90

Intellij에서 Gradle, JUnit으로 테스트 중 아래와 같은 에러가 발생했다.

 

 No tests found for given includes: [com.kwon.book.springboot.web.HelloControllerTest.hello��_���ϵȴ�](filter.includeTestsMatching)

에러 화면

에러 발생시 첫 번째로 @Test Annotation을 썼는지 확인한다.

 

만약, 잘 썻는데도 test를 인식하지 못한다면

 

위 메뉴 바에서 File > Settings > Gradle > Run tests using : intellij IDEA로 변경해주면 잘 동작한다.

 

해결

728x90