probe-rs / embedded-test

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

Rust analyzer no longer shows `Run Test | Debug` buttons #29

Open t-moe opened 5 months ago

t-moe commented 5 months ago

This is related to https://github.com/rust-lang/rust-analyzer/issues/17011 and can probably be fixed by emitting #[::core::prelude::v1::test] from my macros.

tokio test does this as well: https://github.com/tokio-rs/tokio/blob/a1acfd8c20475e8a878b012ac4aa90b361f004ae/tokio-macros/src/entry.rs#L365 )

Lets just hope that #[::core::prelude::v1::test] stays a no-op, when harness=false for that particular test.