mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-11-23 22:00:04 +00:00
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>
|
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||