Skip to content

refactor: Enable test coverage and update CI#4233

Merged
jamesarich merged 3 commits into
mainfrom
feat/fix-tests
Jan 16, 2026
Merged

refactor: Enable test coverage and update CI#4233
jamesarich merged 3 commits into
mainfrom
feat/fix-tests

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

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.

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>
@github-actions github-actions Bot added the enhancement New feature or request label Jan 16, 2026
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

codecov Bot commented Jan 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (d27a848) to head (585d1a8).
⚠️ Report is 4 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

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 DaneEvans left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing that looks concerning to me.

@jamesarich jamesarich added this pull request to the merge queue Jan 16, 2026
Merged via the queue into main with commit 962137a Jan 16, 2026
6 checks passed
@jamesarich jamesarich deleted the feat/fix-tests branch January 16, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants