Inflearn Community Q&A
테스트 에러 문의 (Execution failed for task ':test'.)
Written on
·
9.9K
2
안녕하세요 선생님. ANDY BAE입니다.
테스트 시도 중 아래와 같은 오류가 발생하였습니다. 원인을 찾지 못하여 문의드립니다!
Execution failed for task ':test'.
> No tests found for given includes: [jpabook.jpashop.MemberRepositoryTest](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.
javaspring-bootspring웹앱JPA
Quiz
51% of people got it wrong. Give it a try!
스프링 부트 Starter 라이브러리의 주된 목적은 무엇일까요?
코드 가독성 향상
자주 사용하는 라이브러리 자동 포함 및 버전 관리
데이터베이스 스키마 자동 생성
HTML 템플릿 엔진 제공
Answer 4
2
yh
Instructor
안녕하세요. Andy Bae님
build.gradle을 메뉴얼의 프로젝트 환경설정에 있는 build.gradle로 변경해보시겠어요?
다음과 같이요.
plugins {
id 'org.springframework.boot' version '2.4.1'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'java'
}
group = 'jpabook'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
//JUnit4 추가
testImplementation("org.junit.vintage:junit-vintage-engine") {
exclude group: "org.hamcrest", module: "hamcrest-core"
}
}
test {
useJUnitPlatform()
}
0
0
0






인텔리제이 설정 에서 build Tools > Run tests using 항목을 IntelliJ IDEA로 변경하면 해결 됩니다