This is a know issue in the Test Explorer extension, see https://github.com/formulahendry/vscode-dotnet-test-explorer/issues/370
A workaround is to show the tests in a 'flat' Tree Mode view:

Hi all, I've tried everything I could've think of at this poit and I'm out of ideas.
-
The framework is written using Typescript & Playwright.
-
I'm using Mac Apple M3 and sequoia 15.0.1
My VS Code Test Explorer doesn't detect Playwright tests from the GitHub repo.
1.VS Code is up to date 2. I reinstalled VS Code completely 3. Test explorer constantly displays "Install Additional Test Extensions" & doesn't see Playwright at all, doesn't display projects either (so it's not an issue with them just not being ticked) 4. Playwright plugin is installed 5. Playwright plugin is up to date. I restarted and reinstalled it multiple times. 6. Cloned the whole repo again and set it up from scratch 7. Node and npm are installed and up to date. 8. Other team members cloned the same repo from main and also use VS Code and it works for them. We compared our playwright configs and they are the same including testDir. 9. There are no issues in the code as I didn't do any changes, pulled fresh from main and again my colleagues have the same repo version.
What else can I try? 😭
Thank you!
As the title says, I cannot get the Test Explorer Icon (erlenmeyer flask icon) to appear on the primary sidebar. I need to use it for a class I'm in and don't know of any alternatives to open the test explorer either. I have the Extension Pack For Java extension installed (as well as the Test Runners For Java extension). I've restarted VSCode, my computer, and reinstalled both of those extensions.
If anyone knows of any other ways to open that menu, that would also work as I don't need the icon, just the ability to run the tests with that menu, thanks!
Install .NET Core Test Explorer extension Set dotnet-test-explorer.testProjectPath to the folder path of your test project in settings.json In .NET Test Explorer of Explorer view, all the tests should be detected and you should be able to run tests via VSCode.
I got the same issue with Test Explorer UI.
PHPUnit Test Explorer is installed as well.
For me this workaround worked :
I disabled then enabled the PHPUnit Test Explorer extension.
I came back to the "test" tab, the tests were displayed and could be executed.
Hoping that can help.
I'm new to Visual Studio Code, so it may just be that I don't understand something simple.
I just started looking at the MSTest and Visual Studio test features and so I want to also work with it within Visual Studio Code. The VSC 1.59 release notes say:
Native support for running tests in VS Code with built-in Test Explorer.
I have a project that I created within Visual Studio (not VSC), and opened it within VSC, but I do not see any sort of Test Explorer. I also do not see the Erlenmeyer flask on the left side, as I see in some articles talking about it, but that may be a different extension?
I see that there was a Text Explorer extension not written by Microsoft, but that has been deprecated since the VSC 1.59 release.
So, how do I use / enable the VSC 1.59 native Test Explorer?
I have a few repos that I develop in with vscode and the test explorer typically just loads them. I have this working for single repos and workspaces. I use Jest extension for these.
I just began developing on a new repo and the test explorer didn't appear. I installed the Vitest extension and the tests appeared but they fail immediately with
test result not found. did you use 'vitest.commandLine' to run mode?
so I try setting that and the tests just hang indefinitely.
I've tried a number of things in vitest.commandLine
e.g. npm run test, npm test, yarn test --
the tests run fine from command line with npm test