-
Notifications
You must be signed in to change notification settings - Fork 217
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Hi! I'm not sure if this issue should be opened here or on the elixir-ls repository. Please let me know if this is not the right place and I'll gladly move it.
I've recently been playing around with adding test running functionality to the extension. My first step is to have the extension provide code lenses to automatically run tests on click (like Jest Runner does).
I've got a simple POC which works on the following levels:
- A new function in ElixirSense returns all of a file's metadata (I'm guessing this is probably not required, but it was quick and good enough for a POC)
- ElixirLS uses that metadata to identify all calls to the functions "test" and "describe" in files for which the path contains "test". Code lenses are returned for each of these calls, as well as for the first line of the file (to run all tests).
- VSCode ElixirLS provides a command to run tests based on a provided filter in a terminal, which is invoked upon clicking the code lens.
Before going any further with this I wanted to check for interest for such a feature and gather comments on a good implementation.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request