Skip to content

test: add ProfileProvider tests#652

Open
daichikuwa0618 wants to merge 1 commit intoDroidKaigi:mainfrom
daichikuwa0618:feature/ISSUE-355-profile-provider-test
Open

test: add ProfileProvider tests#652
daichikuwa0618 wants to merge 1 commit intoDroidKaigi:mainfrom
daichikuwa0618:feature/ISSUE-355-profile-provider-test

Conversation

@daichikuwa0618
Copy link

Issue

Overview (Required)

  • Add comprehensive unit tests for ProfileProvider class
  • Introduce TestClock to handle complex async timing: ProfileProvider has intricate async flows with multiple state updates, making traditional async testing unstable. TestClock provides deterministic control over time advancement, ensuring reliable and reproducible test results
  • Add @Suite(.serialized) annotation to ensure test isolation and prevent race conditions
  • Test coverage ensures ProfileProvider behaves correctly under various async scenarios

Links

@daichikuwa0618 daichikuwa0618 requested a review from a team as a code owner September 16, 2025 01:19
@daichikuwa0618 daichikuwa0618 requested review from Copilot and ry-itto and removed request for a team September 16, 2025 01:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds comprehensive unit tests for the ProfileProvider class, introducing TestClock for deterministic async testing and ensuring proper test isolation.

Key Changes

  • Adds unit tests covering all ProfileProvider functionality including subscription, loading states, profile updates, and save operations
  • Introduces TestClock for reliable async testing with deterministic time control
  • Implements @suite(.serialized) annotation to prevent race conditions between tests

@daichikuwa0618 daichikuwa0618 force-pushed the feature/ISSUE-355-profile-provider-test branch from a98b8f2 to 8a02e98 Compare September 16, 2025 01:24
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.

[iOS] [ProfileCard] implement UseCase and Presentation test

2 participants