Conversation
dkhawk
force-pushed
the
feature/robolectric-tests
branch
from
September 15, 2026 21:09
0985765 to
34f2003
Compare
Coverage (unit tests)Compared against
Line and branch coverage from unit test reports. History is recorded in |
Contributor
Code Coverage
|
This was referenced Sep 15, 2026
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.
Summary
This draft PR introduces JVM-based unit and Jetpack Compose integration tests for
:maps-composeleveraging the exploratoryandroid-maps-robolectricshadow library (com.google.android.maps.robolectric:shadows:1.0.0).Note
CI is expected to fail resolution for
com.google.android.maps.robolectric:shadows:1.0.0until the library is published to Maven Central. This PR is intended for early review and exploration of the testing ergonomics and coverage potential.Test Suites Included
CameraPositionStateTest: tests unbound state, map synchronization, instantaneousmove(), coroutineanimate(), and screen coordinate projection round-trip.MapApplierTest: tests Compose node hierarchy mutation,MarkerNodeinsertion &MarkerStatebinding, click events, drag interactions, and circle callbacks.GoogleMapTest: tests full Compose UI lifecycle (<GoogleMap>rendering with markers/circles, marker clicks mutating Compose state, dynamic recomposition additions/removals).Local Coverage Metrics
Across these 14 fast JVM tests (~7.4s execution time),
:maps-composetest coverage reached:GoogleMapKt: 69.6%CameraPositionState: 69.8%MapClickListenersKt: 88.1%CircleKt: 78.7%:maps-compose: 32.1% instruction coverage (up from 0.0%)Reviewers: @kikoso, @LoyalAbbas