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:

Answer from Otto Bos on Stack Overflow
🌐
GitHub
github.com › microsoft › playwright › issues › 23340
[BUG] VSCode "Test Explorer" can't find any tests · Issue #23340 · microsoft/playwright
May 29, 2023 - Restarting VSCode did not help. However disabling Playwright VSCode extension and the re-enabling it again did help. So currently I can see my tests in "Test Explorer".
Published   May 29, 2023
Author   miktap
🌐
Reddit
reddit.com › r/playwright › vs code test explorer doesn't detect tests/playwright
r/Playwright on Reddit: VS Code Test Explorer doesn't detect tests/Playwright
July 24, 2025 -

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!

🌐
Stack Overflow
stackoverflow.com › questions › 79560088 › vs-code-c-sharp-test-explorer-not-seeing-the-tests
VS Code C# Test Explorer not seeing the tests - Stack Overflow
It's also frustrating cause you can see the tests that have been run in the test Results, but nothing can be checked or run from there either. ... run the tests again from terminal After a few seconds the tests should appear in the Test Explorer tab :) My guess why it works is that the new Solution file is generated in the directory where it can access both directories of project and testing.
🌐
James Pearson
jpearson.blog › 2021 › 09 › 01 › test-explorer-in-visual-studio-code
Test Explorer in Visual Studio Code – James Pearson
September 1, 2021 - You can stop the run manually from the top of the Test Explorer, fix the problem and go again. ... Like Loading... ... I’m not sure if I’m missing something but the tests often do no show up in the test explorer. Sometimes they will if I close and reopen the containing folder.
🌐
Developer Community
developercommunity.visualstudio.com › content › problem › 747227 › test-explorer-is-not-discovering-tests.html
Test Explorer is not discovering tests - Developer Community
September 25, 2019 - Skip to main content · Visual Studio · Guidelines Problems Suggestions Code of Conduct · Downloads · Visual Studio IDE Visual Studio Code Azure DevOps Team Foundation Server Accounts and Subscriptions · Subscriber Access · Microsoft Security Azure Dynamics 365 Microsoft 365 Microsoft ...
🌐
Reddit
reddit.com › r/vscode › missing "test explorer" icon in primary sidebar
r/vscode on Reddit: Missing "Test Explorer" Icon in primary sidebar
September 12, 2023 -

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!

🌐
GitHub
github.com › microsoft › vscode-python › issues › 24647
Test explorer not showing tests · Issue #24647 · microsoft/vscode-python
December 20, 2024 - Type: Bug Behaviour Tests not showing in test explorer. Steps to reproduce: Create test file in python project directory ❯ cat tests/test_thing.py def test_thing(): assert True Refresh test explorer. The structure to test_thing.py shows,...
Author   ccadogan-sfld
🌐
GitHub
github.com › microsoft › vscode-dotnettools › issues › 252
[BUG] Test Explorer Does Not Refresh Tests · Issue #252 · microsoft/vscode-dotnettools
July 13, 2023 - When adding new Unit Tests and building the Test Explorer is not updating to reflect the new tests. I tried clicking the refresh button in Test Explorer and when I choose Run All Tests the tests do not appear to be run. If I reload the window in VS Code then when it loads the Test Explorer all the new tests show up.
Author   acgritt
Find elsewhere
🌐
Reddit
reddit.com › r/vscode › how to use native test explorer added in vs code 1.59?
r/vscode on Reddit: How to use native Test Explorer added in VS Code 1.59?
November 12, 2021 -

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?

🌐
GitHub
github.com › microsoft › vscode › issues › 148795
Test Explorer not visible in Activity Bar · Issue #148795
May 5, 2022 - It is my understanding that there should be a Test Explorer built-in to VS Code. However, my installation: Version: 1.66.2 (system setup) Commit: dfd34e8 Date: 2022-04-11T07:46:01.075Z Electron: 17.2.0 Chromium: 98.0.4758.109 Node.js: 16.13.0 V8: 9.8.177.11-electron.0 OS: Windows_NT x64 10.0.19043 ... Also opening a .net core c# project with a tests folder an solution did not change anything.
Author   gregorybleiker
🌐
Dynamics Community
community.dynamics.com › blogs › post
Test Explorer in Visual Studio Code - Dynamics 365 Community
Using the Test Explorer is pretty self-explanatory if you’ve already been using AL Test Runner. When you open your workspace/folder the tests should be automatically discovered and loaded into the Test Explorer view. On first opening all of the tests will have no status i.e.
🌐
Rust Programming Language
users.rust-lang.org › editors and ides
Test Explorer in rust Vscode - editors and IDEs - The Rust Programming Language Forum
June 20, 2024 - After installing rust-analyzer extension for vscode, I was not getting the test explorer. Turns out there is a setting in the vscode Settings->Extensions->Rust-analyzer->tick the "Test Explorer" (Whether to show test explorer).
🌐
GitHub
github.com › microsoft › vscode › issues › 78651
Test Explorer buttons don't show · Issue #78651 · microsoft/vscode
August 7, 2019 - Test explorer buttons/icons show normally for python unittest tests. When VSCode is started from folder in WSL ("code .") the buttons in the test explorer dont' show.
Author   DonJayamanne
🌐
GitHub
github.com › wallabyjs › public › issues › 2962
VSCode Test Exporer UI does not find tests w/ Wallaby · Issue #2962 · wallabyjs/public
April 1, 2022 - When working with Wallaby, the Test Explorer UI usually displays the available tests. If fails to do so if Wallaby is not running, probably due to my mono-repo setup. I did not find a good way to fix that, mostly because it works with Wallaby. Sometimes however (~daily), the explorer UI is empty. I found that in that case, restarting VSCode and then adding //? somewhere and opening the explorer UI after doing that fixes the issue.
Author   mutech
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
Test Explorer UI - Visual Studio Marketplace
September 22, 2024 - Visual Studio Code>Other>Test Explorer UINew to Visual Studio Code?
🌐
Reddit
reddit.com › r/vscode › test explorer issue
r/vscode on Reddit: test explorer issue
February 1, 2024 -

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