-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
How to see stderr of a test executable? #228
Comments
Hey, |
Thanks, thats very interesting! Usually stderr is faster because its not buffered so heavily, but I can see that for an extension it might be different... |
I subscribe for stderr and when I debug I can see the error arriving but the "[ FAILED ]" line has already arrived from stdout and processed so I cannot associate like this. Have to google more about NodeJS. |
It's nodejs stuff. Wont happen soon. :/ |
Workaround from version > 3.6.0:
|
Checklist
Describe the bug
We are overall very happy with this extension, thanks a lot for the great work!
There is one problem that is plaguing us: Many tests for us write to
stderr
in case of problems, notstdout
. This output is not showing in theOUTPUT
tab of VSCode for us. Is there an option to enable capturing stderr, or this is a bug?We do see the output coming from
stdout
, and when changing a message to print to stdout instead ofstderr
everything works. But especially the important messages are onstderr
, so this is very unfortunate.To Reproduce
Example:
1. Implement a test that prints to stderr, like
std::cerr << "Hello world" << std::endl;
2. Run the test from this extension
3. Click on the test in this extension, to see the
OUTPUT
tab4. There are all the "standard" messages from
stdout
, like[ RUN ]
and[ FAILED ]
from GTest. But the message from stderr is not printed.Desktop
The text was updated successfully, but these errors were encountered: