You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.I have the VSCode extension "Test explorer" open
2.I click on "Run test" button on any of the following tests: "plainLogin.spec.ts" or "Online.spec.ts"
3.It does not run any tests. Check console
no tests found.
1 error was not a part of any test, see above for details
Here is the log from the terminal:
Running 0 tests using 0 workers
Error: login\plainLogin.spec.ts:7:12: Playwright Test did not expect test.describe() to be called here.
Most common reasons include:
- You are calling test.describe() in a configuration file.
- You are calling test.describe() in a file that is imported by the configuration file.
- You have two different versions of @playwright/test. This usually happens
when one of the dependencies in your package.json depends on @playwright/test.
at node_modules\@playwright\test\lib\util.js:216
214 |
215 | function errorWithLocation(location, message) {
> 216 | return new Error(`${formatLocation(location)}: ${message}`);
| ^
217 | }
218 |
219 | function expectTypes(receiver, types, matcherName) {
at errorWithLocation (C:\Users\villevi\PlaywrightMylly\Testi%20Projekti\node_modules\@playwright\test\lib\util.js:216:10)
at TestTypeImpl._ensureCurrentSuite (C:\Users\villevi\PlaywrightMylly\Testi%20Projekti\node_modules\@playwright\test\lib\testType.js:80:41)
at TestTypeImpl._describe (C:\Users\villevi\PlaywrightMylly\Testi%20Projekti\node_modules\@playwright\test\lib\testType.js:113:24)
at Function.describe (C:\Users\villevi\PlaywrightMylly\Testi%20Projekti\node_modules\@playwright\test\lib\transform.js:267:12)
at Object.<anonymous> (C:\Users\villevi\PlaywrightMylly\Testi%20Projekti\login\plainLogin.spec.ts:7:12)
=================
no tests found.
=================
1 error was not a part of any test, see above for details
> Test run finished at 9/29/2022, 7:01:13 AM <
The text was updated successfully, but these errors were encountered:
Wilhop
changed the title
[BUG]
[BUG] VSCode Extension Test explorer not running any tests: "no tests found" "1 error was not a part of any test, see above for details"
Sep 29, 2022
Context:
Reproducable repo:
https://github.com/Wilhop/PlaywrightExtensionRepro
1.I have the VSCode extension "Test explorer" open
2.I click on "Run test" button on any of the following tests: "plainLogin.spec.ts" or "Online.spec.ts"
3.It does not run any tests. Check console
no tests found.
1 error was not a part of any test, see above for details
Here is the log from the terminal:
The text was updated successfully, but these errors were encountered: