Is anyone able to run rust tests in VSCode when using a workspace?

Viewed 1294

I'm using VSCode with a workspace specified in my Cargo.toml. I have embedded #[test] which show up in the editor window as a clickable run test. However, when I click VSCode attempts to run tests, but seems to not run any, having filtered it out. Has anyone managed to get embedded tests to work? With simpler projects, which don't have a workspace, I am able to get tests to run.

1 Answers

As it turned out, I just needed to convert my top-level Cargo.toml into a Virtual Manifest. Once I did that, tests now run from the VSCode edit window.

Related