rust-lang / rust-lang/rust-analyzer

Test Explorer does not correctly map output of failing tests

Open
#21,368 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-test-explorer C-bug
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

rust-analyzer version: rust-analyzer version: 0.3.2735-standalone (be6975f8f9 2025-12-28) [.vscode\extensions\rust-lang.rust-analyzer-0.3.2735-win32-x64\server\rust-analyzer.exe]

rustc version: rustc 1.92.0 (ded5c06cf 2025-12-08)

editor or extension:

VSCode

Version: 1.107.1 (user setup)
Commit: 994fd12f8d3a5aa16f17d42c041e5809167e845a
Date: 2025-12-17T14:15:14.850Z (1 wk ago)
Electron: 39.2.3
ElectronBuildId: 12895514
Chromium: 142.0.7444.175
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.26200

rust-lang.rust-analyzer (extension)
Version: 0.3.2735

relevant settings: N/A

repository link (if public, optional):example repository

code snippet to reproduce:
(see repository above)

Description: When running tests through the test explorer, failing tests are missing their corresponding output.

The output of the specific test is completely empty/blank (furthermore, the path to the test seems to contain placeholders, like ${symbol-module} and ${package} which have not been replaced):

Image

However, the full output does contain the assertions' error message:

Image

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 with the linked example repository and reproduce the failure through VSCode's Test Explorer, then trace how rust-analyzer maps failing-test output to the selected test. Done means the specific test shows its assertion output and its path no longer contains unresolved placeholders such as ${symbol-module} or ${package}.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, vscode
Domain
devtools, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.