Skip to content

[Fix/#114] 테스트 환경에서 mock vectorstore 추가#115

Merged
kae-mi merged 3 commits intodevelopfrom
fix/#114-mock-vectorstore-for-test
Nov 18, 2025
Merged

[Fix/#114] 테스트 환경에서 mock vectorstore 추가#115
kae-mi merged 3 commits intodevelopfrom
fix/#114-mock-vectorstore-for-test

Conversation

@kae-mi
Copy link
Copy Markdown
Contributor

@kae-mi kae-mi commented Nov 18, 2025

✅ PR 타입 (하나 이상 선택해주세요)

  • 기능 추가
  • 기능 삭제
  • 리팩토링 / 코드 개선
  • 의존성 / 환경 설정 변경
  • 버그 수정
  • 기타 (하단에 설명)

 

✨ 어떤 내용인가요?

GitHub Actions에서 테스트 실행 시 Qdrant 연결 실패로 빌드 실패하는 문제 해결

 

🔍 작업 상세 내용

  • 테스트 환경에서 Mock VectorStore를 사용하도록 설정
    • TestVectorStoreConfig 추가
      • src/test/java/com/example/live_backend/config/TestVectorStoreConfig.java 생성
      • @Profile("test") 적용으로 테스트 환경에서만 활성화
      • Mock VectorStore Bean 생성
    • build.gradle 수정
      • test 태스크에 spring.profiles.active=test 설정 추가
      • 테스트 실행 시 test 프로파일 자동 활성화

 

🔗 관련 이슈

#114

@kae-mi kae-mi self-assigned this Nov 18, 2025
@github-actions
Copy link
Copy Markdown

📊 코드 커버리지 리포트

Overall Project 64.69% 🔴

There is no coverage information present for the Files changed

@kae-mi kae-mi merged commit 6440bbc into develop Nov 18, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant