[JAVA] Execution failed for task ‘:test’. No tests found for given includes:
아래와 같이 No tests found for given includes: 오류가 발생하는 경우
|
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:test’. > No tests found for given includes: [com.thkmon.ddoc.web.HelloControllerTest.testReturnHello](filter.includeTestsMatching) |
오류가 발생한 java 파일(여기서는 HelloControllerTest.java 파일) 안에 테스트 클래스가 없기 때문이다.
내 경우는 테스트 메서드 위에 어노테이션(@Test)을 빼먹었기 때문에 발생한 오류였다.