stadiamaps / stadiamaps/ferrostar

Sharing test data?

Open
#29 1 comment 0 reactions 2 assignees Claimed by @Archdoog View on GitHub
Dominant language
Kotlin
Stars
419
Forks
81
Avg merge
6d 1h
Merged PRs (30d)
7

Description

We need to figure out an easy way to share test data across the core, Apple, and Android. This data comes in several forms:

1. Waypoint data from GPS traces, route polylines, etc.
2. Predefined routes
- Captured JSON responses
- Methods for creating `Route`s and iOS/Android UI state from a predefined route

These will be useful for creating demonstration applications, SwiftUI/Compose previews, and unit testing.

Currently some of this info exists, but it is spread out and (in some cases) duplicated.

* Rust unit tests in `navigation_controller.rs` and `osrm/mod.rs`
* Apple
* `FerrostarCoreTests/Fixtures.swift` (used in `ValhallaCoreTestsl`)
* `FerrostarCore/ObservableState.swift` (waypoints as Swift code for a UI demo fixture)
* Android
* core unit tests in `ValhallaCoreTest.kt`
* Probably soon to be in the demo app, at least temporarily

I don't think we necessarily need to dedupe _all_ of this, but it probably would be useful to have an easy way to load up routes from Valhalla JSON and simulate location by replaying GPX files on both iOS and Android, and we'll need some helper code for that, and maybe a shared directory (+ symlinks? I think both Xcode and Gradle might not like looking too far afield for files.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.