Error Document/Spring

[Spring Boot] JUnit Test Error - "0 containers and 1 tests were Method or class mismatch"

JeongKyun 2022. 4. 6.
반응형

서론

Springboot JUnit에서 테스트를 하고 있는 중 아래와 같은 에러가 발생하였다.

에러 문구
0 containers and 1 tests were Method or class mismatch

 


 

해결 방법

Settings -> Build, Execution, Deployment -> Build Tools ->

Gradle 에서

Build and run using Run tests using의 속성을 

Intellij IDEA로 변경.

 

 


 

에러 발생 이유

빌드할 때 JUnit으로 실행되어야 하는데 Gradle로 실행되어 발생한 문제이다.

IntelliJ IDEA로 변경 시 해결.

 

댓글

💲 많이 본 글