Closed gavinltomra closed 1 month ago
Hello,
Thanks for the report.
For the failure without message I can tell the problem is that there is a \n
at the end of << " Fourth line\n";
.
This changes the output from Failed bad whitespace
to what you get.
It won't be fixed. There is no easy way to tell that what is the next line about. Note that this extension parses an unstructured output. Not trivial. related code
The other one I will try to fix it.
Checklist
Describe the bug
Using a Google Test based test app, where one of the tests prints some additional information to
std::cout
on test failure, e.g.:When run directly at the command prompt with
--gtest_filter=CppMateTest*
, the output is as expected:When run from VSCode's TESTING panel, the output in the TEST RESULTS panel strips the leading whitespace, like so:
Also, if I click on the specific failing test in the panel on the right (rather than "show result output" on the whole run) then I only see the following output, which is not helpful:
Is this something that can be fixed in this extension or is it a bug in VSCode itself? It would also be nice if there's a way to omit the prefixes so that it more closely matches the "real" output.
(Unrelated: if I click on a failing test in the TESTING panel then it navigates to the corresponding source. If I likewise click on a passing test then it doesn't. This seems unexpected. Possibly of note is that the TEST RESULTS panel displays two "go to source" context menu entries for failing tests (only the second of which works, and no run commands) and none for passing tests (only run/debug commands), which also seems unexpected.)
Desktop
(This also reproduces outside of the remote, so I don't think that's related.)