본문 바로가기

Spring

[IntelliJ/Spring] 테스트 실행 에러 해결 (Build failed with an exception)

728x90
반응형

intelliJ 환경에서 spring boot로 테스트 코드를 작성 후 실행하였는데 아래와 같은 에러가 발생했다.

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> No tests found for given includes: [com.itevent.iteventapi.controller.AccountControllerTest.helloTest](filter.includeTestsMatching)

 

아래와 같이 해결하였다.

 

Settings > Build, Excecution, Deployment > Build Tools > Gradle

Run tests using - [IntelliJ IDEA] 로 변경

728x90
반응형