티스토리 뷰

반응형

 

테스트 사용도 하지 않는데 Test 쪽에서 빌드하다가 에러가 난다.

> Task :test

DomainRegistryApisApplicationTests > contextLoads() FAILED
    java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
        Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:800
            Caused by: org.springframework.beans.factory.BeanCreationException at ConstructorResolver.java:658
                Caused by: org.springframework.beans.BeanInstantiationException at SimpleInstantiationStrategy.java:185
                    Caused by: org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException at DataSourceProperties.java:252

1 test completed, 1 failed

> Task :test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///home/ec2-user/app/jane-shop-apis/build/reports/tests/test/index.html

* 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 16s
9 actionable tasks: 7 executed, 2 up-to-date
> in jane-shop-apis directory
> Build file copy
pid check :
> not found application
> new application deploy
> JAR name: jane-shop-apis-0.0.1-SNAPSHOT.jar

 

 

 

단위 테스트가 작성되지 않았는데 빌드가 되면서 난 에러여서 application.yml 에서 아래 테스트 구문을 제거해주니 잘 빌드되었다.

tasks.withType<Test> {
	useJUnitPlatform()
}

 

 

 

 

 

반응형
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
글 보관함