vscode-rust icon indicating copy to clipboard operation
vscode-rust copied to clipboard

Enhancements to crate testing

Open booyaa opened this issue 8 years ago • 5 comments

Version of VSCode: 1.10.1 Version of the extension: 0.3.10 OS: macOS 10.12.2 (Sierra)

Description:

Testing should have better integration with vscode rust extension.

  1. Enable Test runner in status bar (see screenshot)

codelen-screenshot-2

  1. Add the ability to run or debug tests as a codelens (see screenshot)

codelen-screenshot-1

booyaa avatar Mar 07 '17 17:03 booyaa

@booyaa, The first isn't worth it since there are: a shortcut (CTRL+T), a command (Cargo: Test). The second one is interesting, but it requires time.

KalitaAlexey avatar Mar 08 '17 07:03 KalitaAlexey

I've given more examples of why the first is useful. Asides performing the same function you refer to (Cargo: Test) it also gives status of tests.

failed_tests_in_statusbar

test_status_in_command_palette

booyaa avatar Mar 08 '17 08:03 booyaa

Wow. Icons. Cool. What is the extension?

KalitaAlexey avatar Mar 08 '17 08:03 KalitaAlexey

Both features can be found in this Python language extension: https://marketplace.visualstudio.com/items?itemName=donjayamanne.python

booyaa avatar Mar 08 '17 09:03 booyaa

Related issue in RLS https://github.com/rust-lang-nursery/rls/issues/173

booyaa avatar Mar 15 '17 07:03 booyaa