vscode-elixir-ls icon indicating copy to clipboard operation
vscode-elixir-ls copied to clipboard

Add task to run test at cursor

Open manzanit0 opened this issue 5 years ago • 2 comments

Adds a task to the extension to run the current test under the cursor.

I wasn't too confident on adding a default keybinding because I'm not familiar with any policies around keybindings in ElixirLS project. If you think it's worth, it can be done too. I currently have it set up to ctrl + '.

Below is a screenshot of the task selector + execution.

image

manzanit0 avatar Jul 08 '20 12:07 manzanit0

This is great! Any chance to get options to run the whole file/test suite too? I know theres another VS Code extension that does this for elixir, but having this in one place feels nice

rossvz avatar Oct 23 '20 14:10 rossvz

Great! The vscode already have testing.runAtCursor, and other commands. What do yout think about implement the Testing API?

  • https://github.com/microsoft/vscode-extension-samples/tree/main/test-provider-sample
  • https://code.visualstudio.com/api/extension-guides/testing

robsonpeixoto avatar May 06 '21 12:05 robsonpeixoto

Superceded by https://github.com/elixir-lsp/vscode-elixir-ls/pull/290

lukaszsamson avatar Jan 09 '23 23:01 lukaszsamson