Embedded test harness for Rust no_std
Only supports ARM Cortex-M semi-hosting for now.
How to use
Add embedded_test_harness
and
testmacro = { git = "https://github.com/yhql/testmacro"}
to Cargo.toml dev-dependencies
.
Then you may write tests following this template:
use panic_semihosting as _;
use test_runner;
/// _start is the entrypoint specified in the linker
!