rouse-context/app
Jason Monk 0b69fae5ed Add tests for per-category health query classes (#134)
81 new unit tests covering each record type in each category plus the
RealHealthConnectRepository dispatcher:

- ActivityQueriesTest (19) -- all 13 activity record types, limit, range
  forwarding, summary with and without Steps permission.
- BodyQueriesTest (11) -- all 6 body types, summary with and without
  Weight permission.
- SleepQueriesTest (6) -- SleepSession shape and sleep_hours summary
  computation.
- VitalsQueriesTest (16) -- all 10 vitals types, heart rate average
  summary with and without permission.
- NutritionQueriesTest (7) -- Hydration and Nutrition with optional
  field absence.
- ReproductiveQueriesTest (10) -- all 6 reproductive types.
- MindfulnessQueriesTest (5) -- MindfulnessSession.
- RealHealthConnectRepositoryTest (7) -- dispatch routing and summary
  composition across categories.

Tests drive the category classes through a FakeRecordReader seam so no
Health Connect SDK calls or Robolectric are needed. Metadata uses
Metadata.manualEntry for stable test fixtures.

RealHealthConnectRepository's internal constructor was rewritten to
expose categoriesProvider / grantedPermissionsProvider /
historicalReadGrantedProvider seams so the dispatcher can be tested
without reaching HealthConnectClient.
2026-04-14 19:59:40 -04:00
..
screenshots Fix #107: Wire SettingsScreen toggle + AuditHistoryViewModel for showAllMcpMessages 2026-04-14 06:35:37 -04:00
src Add tests for per-category health query classes (#134) 2026-04-14 19:59:40 -04:00
build.gradle.kts Fix #70: Parameterize base domain for self-hosting 2026-04-12 13:06:07 -04:00
google-services.json Add Firebase: google-services.json, Google Services plugin, debug applicationIdSuffix 2026-04-05 15:38:40 -04:00
proguard-rules.pro Add ProGuard rules for Ktor JMX references 2026-04-11 15:07:22 -04:00