Issue was at beginning reported in vscode-rust repo here and author switch from rls to rust-analyser.
Looking at rust-analyser, everything that has test in function attributes is recognized as a test (see code here).
Running test or not is a choice left to user, even if it does not work perfectly.
Make test regex a little bit more permissive. This will allow external libs that have special test macro to be recognize as valid test case.
For example, following macros will be recognized as valid test case:
Issue was at beginning reported in
vscode-rust
repo here and author switch fromrls
torust-analyser
.Looking at
rust-analyser
, everything that hastest
in function attributes is recognized as a test (see code here). Running test or not is a choice left to user, even if it does not work perfectly.