question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] No tests found using the test explorer - pw/test@1.26.0

See original GitHub issue

Context:

  • 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]

image

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

image

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:closed
  • Created a year ago
  • Reactions:7
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
aslushnikovcommented, Sep 27, 2022

This is fixed; the fix will go public with 1.26.1 in a few minutes.

2reactions
peterbarthacommented, Sep 28, 2022

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:

monorepo/
├─ node_modules/
├─ packages/
│  ├─ app1/
│  │  ├─ tests/
│  │  ├─ src/
│  │  ├─ package.json <----- playwright/test@1.26.1 is added here
│  │  ├─ package-lock.json
│  │  ├─ playwright.config.json
├─ package.json
├─ package-lock.json

OS: MacOS 12.6 (ARM) Node: v17.4.0 Playwright version: 1.26.1 playwright/test version: 1.26.1 ms-playwright.playwright VSCode plugin version: v0.2.10 VSCode version: 1.71.2

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found