본문 바로가기
  • 소소한 개발자 이야기
Software/알고보면 쓸모있는 코딩스킬

[인텔리제이] JUnit Test 실패 No tests found for given includes

by Siwan_Min 2023. 1. 13.
728x90

Intellij 에서 Junit 테스트를 하는 중 갑자기 Error가 발생했다.

 

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':eatgo-common:test'.
> No tests found for given includes: (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.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task 
> No tests found for given includes:(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.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s

 

Junit 테스트 빌드 설정을 바꿔 문제를 해결할 수 있었다. 

 

해결 방법은 아래와 같다. 

 

IntelliJ IDEA >> Preferences >> Build, Execution, Deployment >> Build Tools >> Gradle

 

Run tests using: Gradle -> IntelliJ IDEA 

 

 

728x90

댓글