rouse-context/core/bridge
Jason Monk 9af562452c
Fix #248: Add Kover coverage measurement + CI aggregated report (#254)
Applies the `org.jetbrains.kotlinx.kover` 0.9.8 plugin to every production
module and wires the root project as the merging target, so
`./gradlew koverHtmlReport` produces one aggregated HTML + XML report across
`:app`, `:core:{tunnel,mcp,bridge}`, `:api`, `:notifications`, `:work`, and
`:integrations`.

Key pieces:

- `:core:tunnel:integrationTest` (real-relay subprocess tier) is now
  registered as a `KotlinJvmTest`, not a plain `Test`. Kover's KMP locator
  only auto-discovers tasks whose superclass is `KotlinJvmTest`; without
  this change, coverage from integration tests (e.g.
  `LazyMtlsKeyManager.chooseClientAlias`, exercised only by the real-relay
  flow) would silently be dropped from the report.
- Android `testReleaseUnitTest` tasks are excluded via
  `instrumentation.disabledForTestTasks`. CI only runs debug unit tests, and
  some release-variant unit tests aren't configured to work (e.g. Roborazzi
  screenshot tests in `:notifications`).
- Filters exclude generated code: `BuildConfig`, Compose `ComposableSingletons`
  + `*_ComposableKt`, kotlinx.serialization `$$serializer`, Room `*_Impl`,
  and Hilt/Koin glue for future-proofing.
- `:app`'s release-signing check is tightened to the exact signing-triggering
  task names so Kover's transitively-scheduled `packageReleaseResources` /
  `packageReleaseUnitTestForUnitTest` no longer trip the fail-fast guard.
- CI runs `koverHtmlReport koverXmlReport` after the existing test steps,
  uploads the HTML as `test-coverage` artifact, and writes a per-module line
  coverage summary to `$GITHUB_STEP_SUMMARY` (awk over each module's XML).

No `koverVerify` rule — report-only for the first pass as specified in #248.

Verified on the aggregated XML: `LazyMtlsKeyManager.chooseClientAlias` reports
`LINE covered=1 missed=0` (was unreachable from unit tests alone).

Co-authored-by: Claude Opus 4 (1M context) <noreply@anthropic.com>
2026-04-18 17:11:09 -04:00
..
src Fix #223: Eliminate :core:bridge:jvmTest hang with nested runBlocking (#224) 2026-04-17 22:06:12 -04:00
build.gradle.kts Fix #248: Add Kover coverage measurement + CI aggregated report (#254) 2026-04-18 17:11:09 -04:00