docs(android): add test coverage plan to reach the 50% gate #40
Reference in New Issue
Block a user
No description provided.
Delete Branch "docs/android-coverage-plan"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & why
With the JaCoCo→Sonar wiring live (
Android-app#26), the Android app's coverage is now measured: 16.4% on new code — still under the 50% quality gate. This adds a concrete, phased plan to close that gap.docs/android/COVERAGE_PLAN.md:uncovered_lines: ViewModels are the dominant lever (28 files, 1,153 lines, 0.1% covered — no ViewModel has a test); then DTOs (648 lines, 27%), repositories (274, 11%), core utils.sonar.coverage.exclusionsto stop counting code a JVM unit test can't execute (pure-@Composable*Components.kt/renderers the*Screen.ktglob missed, push services, Keystore-backedEncrypted*stores); (1–4) test the logic — DTOs → ViewModels → repositories → core.MainDispatcherRule+ a hand-fake ViewModel test pattern (no new deps; matches the repo's no-mock convention).Cross-linked from
PLAN.md§12.1.This is docs only — the actual tests land later as separate
Android-appPRs (one per phase).🤖 Generated with Claude Code