Using std::cout with Visual Studio Test feature

Viewed 284

I am using Visual Studio 2019 and have created a C++ Test project using their test adapter for Google Test. I would like to write some output to stdout from the test and view it after the test run. It does not appear in the output window. Any ideas on how to view stdout or console output from a test within Visual Studio test facilities?

1 Answers

The Visual Studio seems to have separate debug output window. To that window we can write like OutputDebugStringA("Bla bla blah."); It has nothing to do with stdout AFAIK.

Related