[BUG] No tests found using the test explorer - pw/test@1.26.0
See original GitHub issueContext:
- Playwright Version: 1.26.0@latest
- Operating System: Windows
- Node.js version: 14.17.3
- Visual Studio Code version: 1.71.0
- Playwright for VSCode extension version: 0.2.10
- Browser: all
- Extra:
Repo Any new project I’ve tried
Describe the bug
Test runner doesn’t finds tests when using “@playwright/test”: “^1.26.0” with Playwright for VSCode extension version: [0.2.10]

When using “@playwright/test”: “^1.25.2” with Playwright for VSCode extension version: [0.2.10], the test explorer shows the correct amount of tests and works as normal

This problem only occurs on my windows instance and doesn’t occur on mac.
Manually the tests are executable and there is no problem: npx playwright test
Issue Analytics
- State:
- Created a year ago
- Reactions:7
- Comments:10 (3 by maintainers)
Top Results From Across the Web
TestExplorer does not discover new tests in existing test class
Open solution with NUnit test classes builds fine. After the build process test explorer shows and runs all tests successfully. Test results are...
Read more >No tests found to run - while debugging/running Unit test cases
Problem. If I understand you correctly, this is something you observe: when you run the tests, the following can be seen in the...
Read more >Run unit tests with Test Explorer - Visual Studio (Windows)
Test Explorer can run tests from multiple test projects in a solution and from test classes that are part of the production code...
Read more >NUnit tests is not found or do not run in Visual Studio's Test ...
Having problems with your NUnit tests not running as expected in Visual Studio's Test Explorer? Even wiered, the tests might work for other ......
Read more >Part18 -- No Test in Test Explorer (BDD and Specflow)
In this video we will discuss one of the common problem in Specflow, where Test Explorer of Visual studio does not show the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is fixed; the fix will go public with 1.26.1 in a few minutes.
Still not working if the playwright/test is not installed directly in the root folder (with previous versions, it works as expected). Sample folder structure:
OS: MacOS 12.6 (ARM) Node: v17.4.0 Playwright version: 1.26.1
playwright/test
version: 1.26.1ms-playwright.playwright
VSCode plugin version: v0.2.10 VSCode version: 1.71.2