-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust-Analyzer's "Run test" buttons don't work with defmt-test #260
Comments
on what is this issue blocked? |
being able to customize the behavior of "Run Test" in Rust Analyzer maybe? RA assumes the standard ( I guess the other way to make this work is to make |
Ah! Thank you for the detailed explanation. |
including unknown flags fixes knurling-rs/defmt#260 which results in `probe-run` being invoked like this: `probe-run --chip CHIP some-elf module::path --exact --capture` the last 3 flags are now accepted by the parser but then discarded
151: discard arguments that come after the ELF file path r=jonas-schievink a=japaric including unknown flags fixes knurling-rs/defmt#260 which results in `probe-run` being invoked like this: `probe-run --chip CHIP some-elf module::path --exact --capture` the last 3 flags are now accepted by the parser but then discarded Co-authored-by: Jorge Aparicio <jorge.aparicio@ferrous-systems.com>
The
#[test]
attribute is picked up by Rust-Analyzer so RA shows "Run Test" buttons but you get an error if you try to use.Those button will invoke
cargo test --package testsuite --test test -- tests::assert_true --exact --nocapture
which then invokes passes thetests::assert_true --exact --nocapture
arguments toprobe-run
.probe-run
will fail to run as it doesn't recognize those command line arguments.Interestingly the
mod tests
module is also picked up by RA so it also gets a "Run Test" button; that one also fails to run.(migrated from knurling-rs/defmt-test#1 )
The text was updated successfully, but these errors were encountered: