Skip to content

How to use rustTestExplorer.rootCargoManifestFilePath? #183

@ibraimgm

Description

@ibraimgm

Hello! I have a repository with the following structure:

some_project   <--- project root (this is the folder I open)
├── c_project
│   └── main.c
├── rust_project
│   ├── Cargo.toml
│   └── src

Since Cargo.toml is not on the root path, test explorer does not show any testes on the UI. If I open the rust_project folder directly, it works as expected.

Looking at the plugin contributions, I noticed rustTestExplorer.rootCargoManifestFilePath. I tried the following combinations:

  • ./rust_project
  • ./rust_project/Cargo.toml
  • ${workspace}/rust_project
  • ${workspace}/rust_project/Cargo.toml
  • /home/myuser/myprojects/some_project/rust_project
  • /home/myuser/myprojects/some_project/rust_project/Cargo.toml

But none of them worked (tests still weren't showing on the UI).Am I doing something wrong here? Or this option is bugged/not implemented? Not sure if it helps, but the test lens from rust-analyzer do show up and work as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions