Skip to content

[TECHNICAL] Migrate tests to the new kotlinx-coroutines-test API #4710

Closed

Description

@joragua

We’ve noticed that when some libraries are added to the project, the kotlinx-coroutines-test dependency is automatically updated, causing some unit tests to fail to compile due to errors in methods like pauseDispatcher() and resumeDispatcher().

Starting from 1.8.0 (we are currently using 1.6.4), the TestCoroutineDispatcher may not be available and the methods mentioned before may be removed, so that is the main reason. As a result, some tests from AuthenticationViewModelTest, OAuthViewModelTest, CapabilityViewModelTest and ShareViewModelTest need to be refactored due to this restriction.

⚙️ References

TASKS

  • Research (if needed)
  • Create branch technical/migrate_tests_to_new_coroutines_api
  • Development tasks
    • Upgrade kotlinx-coroutines-test dependency
    • Adapt tests to the new API
    • Implement unit tests (if needed)
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch technical/migrate_tests_to_new_coroutines_api into master

Activity

  1. changed the title [-][TECHNICAL] Migrate tests to the new `kotlinx-coroutines-test` API[/-] [+][TECHNICAL] Migrate tests to the new kotlinx-coroutines-test API[/+] on Nov 6, 2025
  2. added this to the 4.8 - Next milestone on Nov 7, 2025
  3. joragua commented on Nov 19, 2025

    @joragua
    MemberAuthor

    Summary

    Tests from AuthenticationViewModelTest, OAuthViewModelTest, CapabilityViewModelTest and ShareViewModelTest have been refactored in order to use the new kotlinx-coroutines-test API. The main changes introduced in this issue include:

  4. self-assigned this
    on Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions