Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Rust Test LensNew to Visual Studio Code? Get it now.

Rust Test Lens

Hannes De Valkeneer

|
35,613 installs
| (2) | Free
Adds a code lens to quickly run or debug a single test for your Rust code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Rust Test Lens

Build Status Visual Studio Marketplace Installs

A code lens to debug rust tests and binaries.

test lens

⚠ NOTE: No more maintenance will be done to this extension. #17 has lead to adding the debug codelens into rust-analyzer#3561. This code will remain available as is for those not using rust-analyzer.

Requirements

Depends on the LLDB extension vscode-lldb.

Extension Settings

This extension can be enabled/disabled using the following setting:

  • rust-test-lens.enable: true/false to enable/disable this extension
  • rust-test-lens.args.main: An array of strings with the application arguments.
  • rust-test-lens.args.tests: An array of strings with extra arguments. Defaults to --no-capture. Run cargo test -- --help to see all possible options.
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft