vscode: describe.each and test.each are shown as 'test result not found'

Hello,

when usuing .each the extension can not find the tests.

image image

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 8
  • Comments: 17 (4 by maintainers)

Most upvoted comments

.each is not supported yet. I’ll find a way to make it work

Using the example from the describe.each documentation, I’m still only seeing placeholders rather than the expanded tests.

image

Version: 1.76.1 Commit: 5e805b79fcb6ba4c2d23712967df89a089da575b Date: 2023-03-08T16:48:08.231Z Electron: 19.1.11 Chromium: 102.0.5005.196 Node.js: 16.14.2 V8: 10.2.154.26-electron.0 OS: Darwin arm64 21.6.0 Sandboxed: No

Vitest extension v0.2.39

This is now supported in pre-release 0.5.0 and higher. Note that the extension now requires Vitest 1.4.0 or higher.

In my case the it.each tests are running and being detected fine however all the ones afterwards fail/hang.

Would be great to find a way to either support the feature or find a compromise that at least allows to “skip” the test cases containing .each while making the rest of the suites running and being detected normally.

Thanks for the info, I have investigated this a little and looked into the vitest/ui package because there it works.

They are basically connecting to the server like this: https://github.com/vitest-dev/vitest/blob/main/packages/ui/client/composables/client.ts

When I have more time, I can investigate this a little more.