-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No test output when debugging #423
Comments
This can be overcome with a setting like below, but I'd still consider this a bug, or at the very least extremely obscure and something that needs better documentation somewhere.
|
There is a bigger problem. The "last" debug run is not reordered by VS Code at all (you can see in your Test Results the last debug run is not in a finished state). I don't know why it is so. When you start another run, the previously empty run becomes populated for some reason. |
This should be fixed in 0.12.4. |
Then it's a good thing that Use it if you prefer it that way. There is nothing that can be done in the extension because the console is intercepted by Vitest and the breakpoint makes it impossible to send the data in time. |
I get that, I really do. Any chance of updates to docs? Or, if you point me to where to update, I'd be happy to contribute to a few sentences. Overall, I felt there's a lack of ... love/tlc to this specifically IMO fantastic feature of vitest with VS Code. I found that most of the docs focus on testing the "whole" unit of a project, the way that you'd run vitest cli, rather than this kind of situation, using testing during development, writing code, test, debug, tinker, test and debug again. The docs barely even make mention of context menu "Debug Test", which I find an incredibly useful and powerful tool, but then got incredibly frustrated with the situation I then found myself in with no output. I then only found reference to |
Looks like
I do not have a lot of time working on every feature in parallel to also write comprehensive documentation for everything. There is however an open issue to add more documentation: #338 (inspired by jest extension readme: https://marketplace.visualstudio.com/items?itemName=Orta.vscode-jest) Feel free to open a PR with instructions on how to properly run those types of tests. |
Describe the bug
I don't get any output stdout/stderr in the Test Output, and only the initial start line in Debug Console.
This issue is exactly the same as described for #137 and #117 which seems to have been fixed in #228, but there's no evidence for output from a debug session / debugging an invidual test.
Reproduction
vitestdebugoutput.mp4
Output
Version
0.12.3
Validations
The text was updated successfully, but these errors were encountered: