elixir-tools / elixir-tools.vscode

Visual Studio Code extension for Elixir
https://marketplace.visualstudio.com/items?itemName=elixir-tools.elixir-tools
Other
87 stars 9 forks source link

Testing integration #89

Open teamon opened 1 month ago

teamon commented 1 month ago

I know this is a big one, but it would be amazing to have an integration with VSCode Testing. There is an existing extension but it uses deprecated APIs.

Just for references here's the VSCode Testing API

@adamzapasnik Would you mind taking a look at the new Testing API and telling if it's anything like the one used by your extension to tell if it could be a good starting point? :)

adamzapasnik commented 1 month ago

hey @teamon

The extension is built on top of https://github.com/hbenl/vscode-test-explorer Supposedly you can enable native API via testExplorer.useNativeTesting, but I haven't tested it. https://github.com/hbenl/vscode-test-explorer?tab=readme-ov-file#changes-for-extension-authors

There is also a guide to migrate to native API https://github.com/microsoft/vscode-docs/blob/vnext/api/extension-guides/testing.md#migrating-from-the-test-explorer-ui

I haven't used Elixir in a long time and don't have time to look into it though 🙈 But hopefully it answers your question.