Skip to content
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

Should show std::cout and std::cerr test outputs #329

Closed
5 tasks done
svak opened this issue Feb 4, 2022 · 3 comments
Closed
5 tasks done

Should show std::cout and std::cerr test outputs #329

svak opened this issue Feb 4, 2022 · 3 comments

Comments

@svak
Copy link

svak commented Feb 4, 2022

Checklist

  • The issue is about this extension and NOT about a fork.
  • Check the known issues list.
  • The latest version of the extension was used.
  • It is not related to remote-vscode or I checked the following issue
  • Imagine yourself into my position and think how hard to debug the issue without insufficient information.
    I understand that you have privacy concerns and I expect you to understand that this extension is developed for free.
    Thanks.

Describe the bug

Consider test:

#include <gtest/gtest.h>
#include <iostream>

TEST(Std, NoOutput)
{
    std::cout << "cout\n"; // (1)
    std::cerr << "cerr\n"; // (2)
}

When this test executed in terminal:

[ RUN      ] Std.NoOutput
cout
cerr
[       OK ] Std.NoOutput (0 ms)

We see both cout and cerr output.

But, when I press "Show output" button, there is no cout nor cerr output:

$6│ [ RUN      ] Std.NoOutput @ /home/user/testmate/main.test.cpp:31
$6│ [       OK ] Std.NoOutput (0 ms)

Screenshots (optional)

Desktop

  • Extension Version: v4.0.24
  • VS Code Version: 1.64.0 (commit #5554b12acf)
  • Google Test Version: 1.11 (commit #14aa11db)
  • OS Type and Version: Ubuntu 20.04.3 LTS
  • Using remote-ssh/docker/wsl?: no

Regression bug?

  • Last extension version in which the feature were working:

Version v3.6.33 shows cout, but not cerr

[ RUN      ] Std.NoOutput
cout
[       OK ] Std.NoOutput (0 ms)

Version 4.0.0 - 4.0.9 shows cerr, but not cout

[#1] [ RUN      ] Std.NoOutput (at )
[#1] [       OK ] Std.NoOutput (0 ms)
[#1] ⬇ std::cerr:
[#1] |cerr
[#1] |
[#1] ⬆ std::cerr

Version 4.0.10 does not work at all
Versions 4.0.11 - 4.0.24 (latest) does not show cout or cerr output

Log (optional but recommended)

@matepek
Copy link
Owner

matepek commented Feb 5, 2022

Fixed in **v4.0.25**.

This issue was mentioned in CHANGELOG.md under a released entry so it is assumed to be fixed.
User verifications are always welcome.

@matepek matepek closed this as completed Feb 5, 2022
@svak
Copy link
Author

svak commented Feb 7, 2022

Awesome! Thanks!

@ryan-holt-1
Copy link

I mentioned in #323 that I still have this issue in the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants