Skip to content

test(navigation-sample): add unit and Robolectric tests for core navigation sample - #34

Draft
dkhawk wants to merge 1 commit into
test/navigation-samples-suitefrom
test/nav-sample-core-unit
Draft

dkhawk wants to merge 1 commit into
test/navigation-samples-suitefrom
test/nav-sample-core-unit

Conversation

@dkhawk

@dkhawk dkhawk commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Stacked on #32 (which builds on #33).

Adds 27 fast host-side unit and Robolectric tests across 5 focused suites in navigation-sample using Kotlin Power-Assert (assertGeo, assertMap) and Google Truth:

  • ManeuverUtilsTest.kt (4 tests): reflection audit over all SDK Maneuver constants, directional/roundabout/ferry icons, and fallback behavior.
  • CustomizationPanelsDelegateTest.kt (7 tests): panel mutual exclusion, Night Mode & Camera Perspective spinners, location-following state sync, and camera controls.
  • NavInfoDisplayFragmentTest.kt (4 tests): ENROUTE/REROUTING/STOPPED states, imperial distance/ETA formatting, and step preview traversal.
  • NavForwardingAndServiceTest.kt (3 tests): NavInfoReceivingService binding/thread cleanup and NavForwardingManager registration success/failure paths.
  • NavigationActivitiesTest.kt (9 tests): MainActivity, NavViewActivity, NavFragmentActivity, SwappingMapAndNavActivity, NavigationSampleApplication, PlacePickerActivity, InitializedNavScope/InitializedMapScope, and EdgeToEdgeUtil.

@dkhawk
dkhawk force-pushed the test/navigation-samples-suite branch from 9488175 to 260ad32 Compare November 30, 2026 19:28
@dkhawk
dkhawk force-pushed the test/nav-sample-core-unit branch from a1aeb4c to 174f251 Compare November 30, 2026 19:28
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