rust-lang / rust-lang/rust-analyzer

'You may need to install a test provider extension' when trying to Run All Tests in VSCode

Open
#7,909 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-vscode C-enhancement S-actionable
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

image

and Debug Failed Tests

How ever they don't work with rust-analyzer with:

image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.