mapbox / mapbox/mapbox-navigation-android

Add tests for the interactions with `MapboxHistoryRecorder` in `MapboxNavigationTest`

Open
#4,494 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

jira-sync-complete
Dominant language
Kotlin
Stars
651
Forks
321
PR merge metrics
No merged PRs in 30d

Description

`NavigationComponentProvider`

Create a function here and wrap it in test the interactions.

The complicated part of this, is to handle test cases for `recreateNavigatorInstance`. Because we need to be able to recreate the navigator and update the HistoryRecorderHandle

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with NavigationComponentProvider and MapboxNavigationTest, then trace how MapboxHistoryRecorder is used during navigator creation. Add interaction coverage, including recreateNavigatorInstance and updating the HistoryRecorderHandle, and confirm the tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile-dev, testing
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.