Skip to main content

Module device

Module device 

Source
Expand description

The device half of a paired scenario: one on-target embedded-test, run as a child cargo test invocation in the firmware crate (which builds, flashes and executes it via that crate’s configured runner, e.g. probe-rs).

Lifecycle contract, enforced by crate::paired_suite!:

  • the test is spawned with kill-on-drop, so a host-side scenario that fails early takes the build/flash child down with its trial runtime instead of leaving the probe busy for the next scenario;
  • every scenario ends by awaiting DeviceTest::verdict; a scenario that never started its device test fails rather than silently passing on host-side evidence alone.

Structs§

DeviceSuite
How to invoke the device-side test crate. One per suite, cloned into each scenario.
DeviceTest