newmin
개발 이것저것
newmin
전체 방문자
오늘
어제
  • 전체 보기
    • Language
      • C
      • Java
    • Algorithm
      • Problem Solving
    • Dev
      • 개발일기장
      • Android
      • Spring
      • 회고록
    • Github
    • IDE
      • eclipse
      • visual studio 2019
    • 대외활동
      • 사피엔스4.0 대학생 서포터즈
      • 코드클럽 SW교육기부단
      • 한국대학생IT경영학회 KUSITMS

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • 백준C언어
  • 중현초등학교
  • 알고리즘
  • 자바
  • 코린이
  • 개발자
  • 대학생 교육기부
  • 코딩
  • BOJ
  • C언어기초
  • 이클립스
  • KB디지털멘토링
  • 깃허브
  • 이클립스에러
  • c언어
  • 코드클럽 SW교육기부단
  • SW교육기부단
  • 대학생 서포터즈
  • 백준
  • 안드로이드
  • 코드클럽
  • 대학생 대외활동
  • 사피엔스4.0
  • 프로그래밍
  • 사피엔스4.0 서포터즈
  • SW교육기부
  • 큐시즘
  • code club
  • C언어알고리즘
  • eclipse

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
newmin

개발 이것저것

IDE/eclipse

[eclipse] error running Gradle test : No matching tests found in any candidate test task.

2022. 6. 7. 02:03

스프링부트 TDD를 공부하던 와중 에러가 발생했다.

단순한 test 코드였는데 run을 해도 아무런 변화가 생기지 않았다.

자세히 살펴보니 terminated가 떠있는걸 발견할 수 있었고, 사람들이 말하는 빨간줄과 초록줄도 보이지 않았다.. 

 

그래서 gradle test를 해보니

No matching tests found in any candidate test task.

 

에러 해결

1. junit5 의존성 추가하기

스프링부트 2.2x 이상부터는 junit4가 아닌 junit5를 사용해야 한다고 한다.

마구잡이식으로 의존성을 추가했던터라 junit4가 추가되어 있었다!

다시 junit5로 추가해주었다.

 

그래도 run이 되지 않았다...

 

2. org.junit.jupiter 패키지 사용하기

이전에 junit4의 의존성을 추가하고 사용하고 있었기에.. org.junit.Test 어노테이션을 사용하고 있었던 것..

이때문에 빌드가 안됐던 것 같다.

org.junit.jupiter.api.Test 로 바꿔주니 너무 잘 동작한다!

 

오늘도 느낀다.

스택오버플로우는 한 줄기의 빛이자 희망..

 

https://stackoverflow.com/questions/55405441/intelij-2019-1-update-breaks-junit-tests

 

Intelij 2019.1 update breaks JUnit tests

After 2019.1 update broke all tests with error: no tests found for given includes xxxx.someThingTest

stackoverflow.com

 

'IDE > eclipse' 카테고리의 다른 글

[eclipse] The operation is not applicable to the current selection. Select a field which is not declared as type variable or a type that declares such fields. 에러 해결  (0) 2022.03.20
[eclipse] An error has occurred. See error log for more details. java.lang.NullPointerException  (0) 2022.01.22
[eclipse] 프로젝트 유형 변경하기  (0) 2021.10.05
[eclipse/github] nothing to fetch 에러  (0) 2021.08.20
[eclipse] Editor does not contain a main type 에러 해결  (0) 2021.08.18
    'IDE/eclipse' 카테고리의 다른 글
    • [eclipse] The operation is not applicable to the current selection. Select a field which is not declared as type variable or a type that declares such fields. 에러 해결
    • [eclipse] An error has occurred. See error log for more details. java.lang.NullPointerException
    • [eclipse] 프로젝트 유형 변경하기
    • [eclipse/github] nothing to fetch 에러
    newmin
    newmin
    매일 작심삼일로 작심일년

    티스토리툴바