Skip to content

[test/#420] Recommendation 회귀 테스트 보강#449

Merged
Dimo-2562 merged 12 commits into
developfrom
test/#420
Jun 22, 2026
Merged

[test/#420] Recommendation 회귀 테스트 보강#449
Dimo-2562 merged 12 commits into
developfrom
test/#420

Conversation

@Dimo-2562

Copy link
Copy Markdown
Contributor

❤️ 기능 설명

Recommendation DDD 리팩터링 전에 현재 동작을 고정하는 회귀 테스트를 보강했습니다.

  • MMR 알고리즘 단위 테스트 추가
  • 추천 수동 재생성 command 흐름 테스트 추가
  • 일일 추천 scheduler 실패 격리 테스트 추가
  • 현재 추천 repository 정책 테스트 추가
  • 추천 이력 엔티티 테스트 추가
  • 추천 통합 테스트 패키지/구조 정리
  • recommendation 테스트 전용 fixture 분리
  • 북마크 상태 조회 시 postId 목록 전달 검증 강화

swagger 테스트 성공 결과 스크린샷 첨부

  • 백엔드 테스트 PR이라 스크린샷 대신 아래 Gradle 테스트 결과로 대체합니다.

연결된 issue

연결된 issue를 자동으로 닫기 위해 아래 {이슈넘버}를 입력해주세요.

close #420



🩷 Approve 하기 전 확인해주세요!

  • Recommendation 테스트 fixture를 도메인 내부 전용으로 분리한 구조가 적절한지 확인해주세요.
  • RecommendationIntegrationTest에서 클래스명에 Controller를 제외한 네이밍이 괜찮은지 확인해주세요.

✅ 체크리스트

  • PR 제목 규칙 잘 지켰는가?
  • 추가/수정사항을 설명하였는가?
  • 테스트 결과 사진을 넣었는가? (테스트 로그로 대체)
  • 이슈넘버를 적었는가?

테스트 결과

  • ./gradlew test -PexcludeIntegration --tests 'com.techfork.domain.recommendation.*'
  • ./gradlew test --tests com.techfork.domain.recommendation.service.RecommendationQueryServiceTest
  • ./gradlew test --tests com.techfork.domain.recommendation.service.MmrServiceTest
  • ./gradlew test --tests com.techfork.domain.recommendation.repository.RecommendedPostRepositoryTest
  • ./gradlew test --tests com.techfork.domain.recommendation.scheduler.RecommendationSchedulerTest
  • ./gradlew test --tests com.techfork.domain.recommendation.entity.RecommendationHistoryTest

@Dimo-2562 Dimo-2562 self-assigned this Jun 22, 2026
@Dimo-2562 Dimo-2562 added 📊 domain:recommendation 추천 시스템 🧪 TEST 테스트 코드 작성 labels Jun 22, 2026
@Dimo-2562 Dimo-2562 merged commit b413fb1 into develop Jun 22, 2026
1 check passed
@Dimo-2562 Dimo-2562 deleted the test/#420 branch June 22, 2026 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📊 domain:recommendation 추천 시스템 🧪 TEST 테스트 코드 작성

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TEST] Recommendation DDD 리팩터링 전 회귀 테스트 보강

1 participant