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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With