rust-lang / rust-lang/rust-analyzer
'You may need to install a test provider extension' when trying to Run All Tests in VSCode
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
I have installed:
- rust-analyzer
v0.2.505 - CodeLLDB
v1.6.1 - VSCode
1.54 rustc 1.50.0 (cb75ad5db 2021-02-10)cargo 1.50.0 (f04e7fab7 2021-02-04)
on Windows 10.
I am able to use the code lens to run and debug tests, which is awesome.
However, VS Code has added some handy new test commands such as Run All Tests

and Debug Failed Tests
How ever they don't work with rust-analyzer with:

No tests found in this workspace. You may need to install a test provider extension.
Shouldn't rust-analyzer be that extension?
I can provide a project if necessary, but any rust project should hit this I believe?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing Run All Tests and Debug Failed Tests in VS Code with the listed rust-analyzer, CodeLLDB, VS Code, rustc, and cargo versions on Windows 10. Trace the rust-analyzer test integration from the existing code-lens test actions; done means VS Code discovers the workspace tests and those commands run or debug them without the test-provider warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, vscode
- Domain
- developer-experience, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100