testing
Testing utilities and fakes for the Meshtastic KMP SDK. Provides in-memory transport and storage fakes, test builders for common message types, and coroutine test helpers for use in unit tests across all modules.
This module is published so that SDK consumers can write tests against their own Meshtastic-based code without depending on real transports or hardware.
Add as a testImplementation dependency:
commonTest.dependencies {
implementation("org.meshtastic:sdk-testing:")
} Key packages:
org.meshtastic.sdk.testing—FakeRadioTransport(in-memoryRadioTransportwhoseframes()flow is driven by tests),InMemoryStorage(volatileDeviceStorage),InMemoryStorageProvider(zero-configStorageProviderfor tests), andTestClock(deterministickotlin.time.Clockfor time-sensitive tests — advance virtual time withoutrunTest's scheduler)