Skip to content

feat(test): add Scenario::RustAnalyzer with a mock rust-analyzer component - #5141

Merged
rami3l merged 6 commits into
rust-lang:mainfrom
rami3l:test/rust-analyzer-scenario
Oct 12, 2026
Merged

rami3l merged 6 commits into
rust-lang:mainfrom
rami3l:test/rust-analyzer-scenario

Conversation

@rami3l

@rami3l rami3l commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Cherry-picked from #5136.

So far, the rust_analyzer_proxy_falls_back_external() test case is using an ugly hack that installs rls and then renames it to rust-analyzer to simulate a toolchain with rust-analyzer installed. This PR tries to get that setup properly done.

This patch:

  • Initialized a rust-analyzer proxy binary in the test fixture.
  • Added a new Scenario::RustAnalyzer where the above proxy leads to an underlying mock binary.
  • Refined the existing rust_analyzer_proxy_falls_back_external() test case around the new scenario.

@rami3l
rami3l force-pushed the test/rust-analyzer-scenario branch 4 times, most recently from 19de198 to 9168baa Compare October 12, 2026 08:09
@rami3l rami3l changed the title refactor(test): simplify match arms in ConstState::new() feat(test): add Scenario::RustAnalyzer with a mock rust-analyzer component Oct 12, 2026
@rami3l
rami3l force-pushed the test/rust-analyzer-scenario branch from 9168baa to e4dfe85 Compare October 12, 2026 08:25
@rami3l
rami3l marked this pull request as ready for review October 12, 2026 08:26
@rami3l
rami3l requested a review from djc October 12, 2026 08:26
Comment thread tests/suite/cli_misc.rs Outdated
@rami3l
rami3l force-pushed the test/rust-analyzer-scenario branch from 8952a43 to 691e51b Compare October 12, 2026 09:14
@rami3l
rami3l enabled auto-merge October 12, 2026 09:14
@rami3l
rami3l added this pull request to the merge queue Oct 12, 2026
Merged via the queue into rust-lang:main with commit b575956 Oct 12, 2026
29 checks passed
@rami3l
rami3l deleted the test/rust-analyzer-scenario branch October 12, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants