반응형
문제 상황
Github Actions 를 통해 프로젝트 빌드 중
> Task :test
Team14projectApplicationTests > contextLoads() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:143
Caused by: org.springframework.beans.factory.BeanCreationException at AbstractAutowireCapableBeanFactory.java:1770
Caused by: org.hibernate.service.spi.ServiceException at AbstractServiceRegistryImpl.java:277
Caused by: org.hibernate.HibernateException at DialectFactoryImpl.java:188
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
3 tests completed, 1 failed
FAILURE: Build failed with an exception.
* What went wrong:
> Task :test FAILED
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///home/runner/work/team14project/team14project/build/reports/tests/test/index.html
contextLoads() FAILED 에러가 발생하면서 빌드단에서 통과되지 못했다.
test 코드를 제대로 작성하지 않아 발생하는 문제이다.
해결
(임시방편일 뿐이지만)
ApplicationTest.java 파일에 @SpringBootTest 를 주석처리해주면 된다.
참고
반응형