[SpringBoot] contextLoads() Failed

2023. 9. 27. 14:11·개발 ━━━━━/Troubleshoot
반응형

문제 상황

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 를 주석처리해주면 된다.

 

참고

https://javaju.tistory.com/128

반응형

'개발 ━━━━━ > Troubleshoot' 카테고리의 다른 글

[Raspberry Pi] Docker-Compose 설치시 Building wheel for crytography (PEP 517) ... error  (1) 2023.12.08
[AWS EC2] EC2 서버 다운 / swap 파일 생성  (0) 2023.11.27
[AWS EC2] nohup: failed to run command 'java': No such file or directory  (2) 2023.11.25
[Docker] The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested  (2) 2023.11.24
[AWS EC2] Permission Denied - UNPROTECTED PRIVATE KEY FILE  (1) 2023.11.23
'개발 ━━━━━/Troubleshoot' 카테고리의 다른 글
  • [AWS EC2] EC2 서버 다운 / swap 파일 생성
  • [AWS EC2] nohup: failed to run command 'java': No such file or directory
  • [Docker] The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested
  • [AWS EC2] Permission Denied - UNPROTECTED PRIVATE KEY FILE
GukJang
GukJang
•  ⌘ ⌥ •
    반응형
  • GukJang
    SPACE
    GukJang
  • 전체
    오늘
    어제
    • Blog (73)
      • 개발 ━━━━━ (68)
        • Java (14)
        • C++ (1)
        • HTML (1)
        • Spring(boot) (7)
        • Dev (9)
        • SQL (1)
        • CS (2)
        • Git (1)
        • Troubleshoot (14)
        • Algorithm (2)
        • Definition (1)
        • Dev Life (2)
        • TIL (7)
        • 항해 (6)
      • 공돌 ━━━━━ (4)
        • 플젝 (2)
        • 장비 (1)
        • 부품 (1)
      • 독서 ━━━━━ (1)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
    • 글쓰기
  • 링크

    • Github
  • 공지사항

  • 인기 글

  • 태그

    백준
    mysql
    항해99
    알고리즘
    Java
    spring
    마이크로파이썬
    SpringBoot
    CI CD
    micropython
    EC2
    docker
    docker volume
    github actions
    electron-builder
    Python
    오픈소스 기여
    AWS
    자바
    사전 스터디
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.0
GukJang
[SpringBoot] contextLoads() Failed
상단으로

티스토리툴바