Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Tests bin for RustNew to Visual Studio Code? Get it now.
Tests bin for Rust

Tests bin for Rust

NickelAngeStudio

|
1,703 installs
| (0) | Free
| Sponsor
Official `tests_bin` crate extension for Rust. Provide codeLens shortcut to easily manage unit tests.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

rust-tests-bin

This extension provides shortcut to the Rust tests_bin crate which is aimed toward Rustacean who wish to have a bin folder where they can easily organize all their unit tests to clean their src folder. Visit Wiki for more informations.

Features

  • Shortcut to create new unit tests file in bin folder.
  • Open your unit tests files directly from your code.
  • Shortcuts to rename and delete unit tests file.
  • Customizable new unit tests file template.
  • Lots of settings to fit your taste.

More features details in wiki.

Requirements

  • Rust crate tests_bin from crates.io.

Extension Settings

This extension contributes the following settings:

  • rust-tests-bin.behavior.openAfterCreate : Enable/Disable file opening after creation.
  • rust-tests-bin.behavior.openAfterRename : Enable/Disable file opening after renaming.
  • rust-tests-bin.behavior.deleteEmptyFolder : Enable/Disable deletion of empty folder after rename/delete.
  • rust-tests-bin.display.showRenameFile : Show/Hide Rename file shortcut.
  • rust-tests-bin.display.showDeleteFile : Show/Hide Delete file shortcut.
  • rust-tests-bin.display.shortcutDisplay : Select how shortcut icon and text are displayed.
  • rust-tests-bin.display.showInStatusBar : Show/Hide tests_bin in status bar (reload required).
  • rust-tests-bin.display.showCodeLens : Show/Hide all shortcuts above tests_bin macros.
  • rust-tests-bin.newFile.contentPath : Path to the file whose content are copied in new unit tests file.

Known Issues

  • Open tests_bin base folder in explorer : Option is removed from Windows since command revealFileInOS act differently on Windows.

Release Notes

1.0.0

Initial release of rust-tests-bin.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft