probe-rs / embedded-test

A test harness and runner for embedded devices
48 stars 7 forks source link

Configurable executor #30

Closed bjoernQ closed 2 months ago

bjoernQ commented 2 months ago

This allows to use a custom Embassy executor.

e.g. #[embedded_test::tests(executor = esp_hal::embassy::executor::thread::Executor::new())]

We need it to run tests on Xtensa targets. There is code using this here: https://github.com/bjoernQ/esp-hal/tree/experiment-async-tests-on-xtensa2/hil-test

This shouldn't cause any behavior changes otherwise

There are a few unrelated changes due to reformatting the files I changed