Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Rust-Analyzer's "Run test" buttons don't work #1

Open
japaric opened this issue Sep 8, 2020 · 0 comments
Open

Rust-Analyzer's "Run test" buttons don't work #1

japaric opened this issue Sep 8, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@japaric
Copy link
Member

japaric commented Sep 8, 2020

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 the tests::assert_true --exact --nocapture arguments to probe-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.

2020-09-08-155154

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant