You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.
The problem is that the current implementation of CodeLens in rls simply uses RegEx to locate the fn name and passes it to cargo test without parsing source code or mod structures.
I had same problem and investigated rls and cargo-test.
It seems --exact flag with fully qualified name of the test function, like a::b::tests::test_name, will do the job. But as @Gowee said above, it requires some understanding of rls.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The lens on
foo_bar
will only run thefoo_bar
test, but the lens onfoo
will run both tests.The lens should pass the module path to the
cargo test
invocation in order to not run all tests with a matching nameThe text was updated successfully, but these errors were encountered: