Reputation: 623
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.
Upvotes: 3
Views: 3163
Reputation: 623
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.
Upvotes: 2