ERROR

[ERROR] No tests found for given includes: [com.express.freight.common.UserRedisRepositoryTest.test]

girin_dev 2023. 12. 26. 15:44
728x90
반응형

그 외 에러 @ID 문제

 

@Id 어노테이션을 

 org.springframework.data.annotation.Id 로 임포트 해야 한다 그렇지 않을 경우, 

 

Error creating bean with name '?? repository' defined in ?? repository defined in @EnableRedisRepositories declared on RedisRepositoriesRegistrar.EnableRedisRepositoriesConfiguration: 
Invocation of init method failed;

 

Bean 등록이 안될 수 있다. ( 프로젝트 실행이 안된다! ) 

 

 

무슨 에러?

Spring Boot Test시 test를 찾지 못해서 발생하는 에러.

 

 

언제 발생?

Junit Test 시에 발생한다.

 

 

redisRepository Test 시에 발생했다.

 

에러 전문 : 

Execution failed for task ':test'.
> No tests found for given includes: [cohttp://m.express.freight.common.UserRedisRepositoryTest.test](--tests filter)

* 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.
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.2.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 566ms
6 actionable tasks: 2 executed, 4 up-to-date

 

 

 

해결책 : 

Settings에서

 

 

Run Tests using 을 Intellij IDEA로 변경한다.

320x100
반응형