본문 바로가기

BackEnd/Java&Spring

Intellij) Junit Test Code 작성 시 "Execution failed for task" 해결 방법

평화로운 오후.. 이제 Java 마스터가 되어야 하는 C쟁이는 Test Code를 작성하려 했는데용

시작하자마자 난관에 부딪히고 말았는데요

 


Execution failed for task ':test'.
> No tests found for given includes:

...

* 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.


⬆️ 이런 에러를 만났습니다

JUnit Test Code Build를 하기 위한 Gradle에 있는 설정을 바꿔줘야했답니다

 

File>Settings>Build,Execution,Deployment>Build Tools>Gradle

로 가줍니다

 

 

진한 보라색 사각형으로 되어있는 저 부분을 Intellij IDEA 로 바꿔줍니닷

원래는 Gradle로 되어있었답니다..

 

그 다음 다시 실행해주면 잘 됩니다

 

'BackEnd > Java&Spring' 카테고리의 다른 글

Spring Cron Expression  (0) 2023.01.25
StringUtils  (0) 2023.01.18
Looking For Annotation~  (0) 2023.01.16
Web Server vs WAS  (0) 2022.04.25
Spring Framework를 알아보자  (0) 2022.04.22