refactor: Enable test coverage and update CI#4233
Merged
Merged
Conversation
This commit introduces several changes to improve testing, code coverage reporting, and continuous integration workflows. Key changes include: - Enabling Android test coverage for debug builds. - Configuring the CI to run instrumented tests, generate, and upload Kover and Codecov reports. - Updating the test artifact upload paths for better organization. - Improving the reliability of database queries in `PacketDao` by first searching by packet ID. - Migrating various Android test classes from `createComposeRule` to the newer `v2.createComposeRule`. - Adding `androidx.test.runner` and `espresso-core` dependencies to resolve version conflicts and ensure test stability. - Cleaning up redundant copyright headers and making minor bug fixes in the codebase. Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
Replaces the `check` Gradle task with the more specific `testDebugUnitTest` task in the reusable Android build workflow. This avoids running Android (instrumented) tests on a Linux runner. Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4233 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 3 3
Lines 23 23
Branches 7 7
=====================================
Misses 23 23 ☔ View full report in Codecov by Sentry. |
Updates the Codecov GitHub Action from `codecov/test-results-action@v1` to `codecov/codecov-action@v5`. This also adds the `report_type: test_results` parameter to the action configuration in the `reusable-android-build.yml` and `reusable-android-test.yml` workflows. Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
DaneEvans
approved these changes
Jan 16, 2026
DaneEvans
left a comment
Collaborator
There was a problem hiding this comment.
Nothing that looks concerning to me.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces several changes to improve testing, code coverage reporting, and continuous integration workflows.
Key changes include:
PacketDaoby first searching by packet ID.createComposeRuleto the newerv2.createComposeRule.androidx.test.runnerandespresso-coredependencies to resolve version conflicts and ensure test stability.