-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests duplicated in Test Explorer #91
Comments
Can you share the contents of your workspace Cargo.toml file? |
Sure workspace:
issue-worker:
elasticsearch-wrapper:
|
Thanks! Everything looks pretty standard there with the explicit cargo workspace, so that plus the the duplicated Could you try opening a standalone instance of Code on the cargo workspace root directory? |
I am studying this project to solve this problem. Someone can help me have a overview? It think the problem is not that hard to solve. |
That'd be great @raphaelricardo10 thanks! I don't know off hand what the issue is, but my guess is that the activation is being hit for every workspace: vscode-rust-test-adapter/src/main.ts Line 27 in b0b6b39
The project is obviously very, very light on contributing documentation but it does have the relevant VS Code configurations and npm scripts wired up (debug, testing, etc.) that you should be able to use the VS Code UI directly for such inner dev loop activities |
Is there any progress on this? |
Not yet. But there is a workaround: not using multiple VSCode workspaces, but a single workspace with cargo.toml file referring to different rust projects. In my case, I have a root project that consumes different rust libraries, and I added them as git submodules to edit them directly from the consumer. For example: [workspace]
members = [
"submodules/project-1",
"submodules/project-2",
"submodules/project-n",
] |
I'm still fairly new to Rust and Cargo workspace setups, so this is probably a setup issue on my end but I'm not too sure.
Essentially, the tests for all my projects are showing twice:
In the above example issue-worker is a binary and elasticsearch-wrapper a library. I've setup a workspace with this folder structure. I'll be adding additional libraries in the future and want them all grouped together, hence the lib folder.
I have a multi-root VSCode workspace with the 'issue-worker' and 'lib' folders. The reason for this is this workspace is sitting in a mono-repo that also has other non-Rust projects; I only want to see the relevant Rust folders.
The text was updated successfully, but these errors were encountered: