Skip to content

Add Kover code coverage integration and GitHub Actions workflow - #311

Merged
hossain-khan merged 1 commit into
mainfrom
feature/add-kover-code-coverage
Aug 19, 2026
Merged

Add Kover code coverage integration and GitHub Actions workflow#311
hossain-khan merged 1 commit into
mainfrom
feature/add-kover-code-coverage

Conversation

@hossain-khan

Copy link
Copy Markdown
Collaborator

Overview

Integrates Kotlinx Kover code coverage into the project, configured similarly to android-remote-notify.

Changes

  • Version Catalog: Added koverPlugin (v0.9.9) and kotlinx-kover plugin in gradle/libs.versions.toml.
  • App Module: Applied kotlinx-kover plugin and configured report exclusions (Metro DI, Moshi adapters, Circuit code-gen, Compose UI, Android UI entry points).
  • Robolectric Configuration: Added robolectric.properties specifying sdk=35 to ensure Robolectric unit tests run consistently with SDK 37 target.
  • CI/CD Workflow: Added .github/workflows/kover.yml to run debug unit tests with coverage, upload HTML reports as artifacts, post PR coverage summary link, and upload XML reports to Codecov.

Verification

Ran:

./gradlew lintKotlin testDebugUnitTest koverHtmlReportDebug koverXmlReportDebug

All tests and report generation passed successfully.

@hossain-khan hossain-khan self-assigned this Aug 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage Report

View Coverage Report

@hossain-khan
hossain-khan merged commit d4e4d91 into main Aug 19, 2026
2 checks passed
@hossain-khan
hossain-khan deleted the feature/add-kover-code-coverage branch August 19, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant