Vscode run tests in release mode?

I am running test from vscode pressing on "Inlay hint" "Run tests".
All goods, but sometime I need to temporary run tests in release mode.

Is any way from UI to temporary change to release build, and then return it back?

I don't think there's such shortcut. to run a specific test in release mode, you should run cargo manually from command line.

cargo test --release TEST_NAME

also check the "rust-analyzer.runnables.extraArgs" setting, but it affects all runnables, including the tests, examples, binaries, etc.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.