Rust Test Explorer for VS Code that enables viewing and running your Rust tests from the VS Code Sidebar.
Functional, but still in an early Beta/Preview !!!!
Bugs are inevitable 😁
See the Test Explorer UI Extension for additional information.
Detected unit tests will be viewable and runnable from the Test Explorer window as long as there is a Cargo.toml file in the root of the directory. It should also work with Cargo Workspaces, as well as packages that have both bin and lib targets.
The tree will reflect the package -> target -> module -> ...
hierarchical structure. However, the tree will flatten the package level if there's only a single package, and/or at the target level if a package only has a single target containing unit tests.
We've got some sample projects in our samples repo for various scenarios.
The initial focus is the core functionality of viewing and running first unit tests.
Afterwards we're tentatively planning to make the individual test results available in the tree (i.e. when you click on failed test case node in the tree, test output will be viewable in VS Code Output Window). Next, we want to support discovering and running integration tests and documentation tests.
More info can be found in the GitHub Project
Here's some of our other Rust-related projects you may want to check out!
- rusty-hook - A git hook utility for your Rust projects
- VS Code Rust Extension Pack - A minimalist extension pack for Rust development in VS Code
MIT - see license details here