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

🔀 :: (#458) ArtistReactor Unit Test 작성 #466

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

baekteun
Copy link
Member

@baekteun baekteun commented Mar 10, 2024

💡 배경 및 개요

Artist화면의 Reactor의 Unit Test를 작성해요

Resolves: #458

📃 작업내용

  • FetchArtistListUseCase의 Spy객체 작성
  • ArtistReactor의 UnitTest 작성

🙋‍♂️ 리뷰노트

Quick이 없다보니 테스트의 이름이 다소 길어지네요 ㅠㅠ
주석으로 Given, When, Then을 구분해놨으니 test_viewDidLoad() 로만 작명할까요? 혹은 지금처럼 액션, when, then 에 따라 결과도 나오는 이름으로(현재방식)으로 작명할까요?

✅ PR 체크리스트

  • 이 작업으로 인해 변경이 필요한 문서가 변경되었나요? (e.g. XCConfig, 노션, README)
  • 이 작업을 하고나서 공유해야할 팀원들에게 공유되었나요? (e.g. "API 개발 완료됐어요", "XCConfig 값 추가되었어요")
  • 작업한 코드가 정상적으로 동작하나요?
  • Merge 대상 브랜치가 올바른가요?
  • PR과 관련 없는 작업이 있지는 않나요?

Copy link

github-actions bot commented Mar 10, 2024

✅ Successful finished SwiftLint

@github-actions github-actions bot added the ♻️ Refactor 코드 리팩토링 label Mar 10, 2024
Copy link

✅ Assign 자동 지정을 성공했어요!

@baekteun

@baekteun baekteun changed the title 🔀 :: (#458) ArtistReactor Test 작성 🔀 :: (#458) ArtistReactor Unit Test 작성 Mar 10, 2024
@yongbeomkwak
Copy link
Member

퀵 도입 고려해봐도 좋은 것 같네요

sut = nil
}

func test_when_viewDidLoad_action_and_artist_count_is_1_then_append_hidden_item() {
Copy link
Member

Choose a reason for hiding this comment

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

확실히 많이 기네요 ㅎㅎ....
아니면 테스트 함수만큼은 한글 네이밍을 해보는 건 어떨까요?

Copy link
Member

Choose a reason for hiding this comment

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

테스트에 필요하다고 생각하는 라이브러리들 고민한번 해주시고 다음 테스트 작성 때 저도 따라 가겠습니다.

@baekteun baekteun force-pushed the 458-artist-screen-viewmodel-to-reactorkit branch from 89b8839 to ea327d4 Compare March 12, 2024 09:17
@baekteun baekteun force-pushed the 458-artist-reactor-test branch from 27c7d94 to 17cde22 Compare March 12, 2024 09:17
@baekteun baekteun force-pushed the 458-artist-screen-viewmodel-to-reactorkit branch from ea327d4 to c04a966 Compare March 12, 2024 09:37
@baekteun baekteun force-pushed the 458-artist-reactor-test branch from 17cde22 to 51f1c66 Compare March 12, 2024 09:41
@baekteun baekteun added the ✅ Test Test 관련 label Mar 12, 2024
Base automatically changed from 458-artist-screen-viewmodel-to-reactorkit to develop March 12, 2024 09:54
@baekteun baekteun force-pushed the 458-artist-reactor-test branch from 51f1c66 to 3e8c8ec Compare March 12, 2024 09:54
@baekteun baekteun merged commit 58c3490 into develop Mar 12, 2024
2 checks passed
@baekteun baekteun deleted the 458-artist-reactor-test branch March 12, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
♻️ Refactor 코드 리팩토링 ✅ Test Test 관련
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Artist화면 viewModel -> ReactorKit 전환
3 participants