So in 1.59 of vscode "Native support for running tests in VS Code with built-in Test Explorer." was added (https://code.visualstudio.com/updates/v1_59).
My question is, how on earth do I use it? I can find tonnes of resources on how to do it with 3rd party extensions, and in fact in the release notes linked above it namechecks the "Test Explorer UI" (https://marketplace.visualstudio.com/items?itemName=hbenl.vscode-test-explorer). However that says it is now depreciated due to the aforementioned native implementation. Even then if I install it, I get an icon but no tests underneath. If I follow what little docs I have in those release notes "get the native experience by setting testExplorer.useNativeTesting to true" the icon disappears and I'm back to square one.
Maybe its an expectation vs reality thing, I'm using .net-core, and if I setup a project like so:
dotnet new sln
dotnet new classlib --name MyCode
dotnet new xunit --name MyCode.Tests
dotnet sln add MyCode MyCode.Tests
And open it in VSCode, other than installing the C# extension. What else could it possibly need?
Please note, I know I can install yet another extension (.NET Core Test Explorer - Jun Han) but this seems to totally circumvent the native explorer.
Thanks in Advance.
Test Explorer UI
, you now also have to have extension that use the buildinTest Explorer
API, find one in the Market place for your language or write one yourself