android / android/nowinandroid

Use of `UnconfinedTestDispatcher` is discouraged

Open
#1,250 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
21.8k
Forks
4.6k
Avg merge
19h 20m
Merged PRs (30d)
2

Description

Investigate use of `UnconfinedTestDispatcher` in tests as in most cases it can be replaced with `advanceUntilIdle()` which gives tighter control over job execution.

Contributor guide

Open the contributing guide

Research direction

Search the repository's tests for uses of UnconfinedTestDispatcher and inspect each test's coroutine execution needs. Replace cases where advanceUntilIdle() provides tighter control, then run the affected tests and confirm they remain reliable and passing.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile-dev, testing
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.