Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add #1 보고서 통합 테스트 코드 작성 #15

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Conversation

suna-ji
Copy link
Member

@suna-ji suna-ji commented Nov 4, 2024

📋 보고서 통합 테스트 코드 작성 PR

📌 변경 사항 요약

  • 보고서 생성 요청 이벤트를 consume하여 보고서를 생성하고. 보고서 생성 완료 이벤트를 produce하는 통합 테스트 코드를 작성했습니다.

📂 관련 이슈

#16

🚀 추가 설명

  • latch 사용한 이유
    • kafka 메시지 consume 로직은 비동기로 처리되므로, 테스트를 위해 메시지가 consume될때까지 대기하도록 하기 위함

@suna-ji suna-ji added this to the V1.0.0 milestone Nov 4, 2024
@suna-ji suna-ji requested a review from since1909 November 4, 2024 09:07
@suna-ji suna-ji added the 테스트 코드 테스트 코드 label Nov 4, 2024
Copy link
Member

@since1909 since1909 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

테스트를 위해 보고서 생성 요청을 send 하고 (backend 상황가정) 요청을 consume 하며 테스트가 진행 되는 것을 확인 할 수 있었습니다.

보고서 생성 요청에 따라 보고서를 생성하고 (thread sleep), 보고서 생성 완료 이벤트 발행/확인 하는 과정까지 흐름에 따라 잘 작성한 테스트 케이스라고 생각됩니다.

@since1909 since1909 merged commit 105ce37 into main Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
테스트 코드 테스트 코드
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants