Test Explorer integration doesn't work in monorepo #17022
Labels
A-test-explorer
Issues related to the test explorer lsp extension and vscode test api
C-bug
Category: bug
I've just discovered that the VSCode rust-analyzer extension now has support for the Test Explorer, which is awesome. :)
However, it doesn't seem to work for monorepos. That is, cases where the Rust project is not at the root of the repository but rather inside a child directory.
It successfully discovers all of the tests, but running them instead returns:
(Where the Rust project is actually in
/Users/sazzer/source/project/service
)So it appears to be trying to run the tests from the repository root instead of the Rust project root.
rust-analyzer version: rust-analyzer version: 0.3.1906-standalone (e4a405f 2024-03-31)
rustc version: rustc 1.77.1 (7cf61ebde 2024-03-27)
editor or extension: VSCode - Extension version v0.3.1906
Cheers
The text was updated successfully, but these errors were encountered: