Replies: 1 comment 10 replies
-
This is how vscode's built-in Test API works. It shows the tree up to the root if there is a failing test so it's easier to find if you have tests collapsed. I think it is quite useful and intended. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just started using the this Vitest extension in VS Code, and noticed that the total count of tests and successful tests is off. For example in the following screenshot, there is 1 test failing out of 430 tests, but the totals of the plugin suggests 4 failing tests out of 533 which is quite misleading.
Here is a minimal example demonstrating the issue:
This example contains two tests inside 2 nested
describe
statements, where 1 of the tests fails. Running this with the test plugin I get:Which suggests there are 4 failing tests out of 5 (but it is 1 failing test out of 2)
On the command line, the counts are correct:
It looks like the
describe(...)
wrappers are also counted as a test too, and I don't think that should be the case.I guess this is a bug?
Beta Was this translation helpful? Give feedback.
All reactions