vscode_deno
vscode_deno copied to clipboard
BDD Style Tests Not Detected
Describe the bug
Nested tests are not detected.
To Reproduce
- Write a test file, and use the BDD style — make sure you nest your tests!
- Note the lack of green test running arrows
- De-nest (if you will) one of your examples. It now has a green arrow.
Expected behavior
It should work
Screenshots

Versions
vscode: 1.74.3 deno: 1.29.3 extension: 3.16.0
Further, a describe
with nested cases (i.e. it
) do not show green arrows either
Also the Testing Explorer does not find tests when BDD Styles is applied.
If someone is willing to guide me a little I'm happy to carve out some time to fix this.
I would also like it if bdd style tests worked a little better in vscode. I searched around a bit, and I wonder if issue is that the deno LSP doesn't return information about BDD-style tests. Looking at this page, the docs seem to indicate that the lsp server only returns tests & steps. I'm not sure how to query the lsp server directly to figure anything out, but I just thought I'd mention it in case it helps.
In my case, it seems like BDD-style tests do eventually get picked up by the extension, however, when trying to run them they never finish, and they block the execution of the remaining tests.
Example video demonstration: https://github.com/denoland/vscode_deno/assets/2887321/a058891e-8bb3-43d3-96e8-d31d0a3d64bc
Since we have this in std, we should consider the LSP detecting describe()/it()
out of the box.
node:test
also isn't detected