clion gtest

Disclaimer: This article is a blogger summer hui's original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/shanpenghui/article/details/89924758

clion use gtest develop test cases, but encountered a problem, normal gtest results do not appear in clion run box, just because CMakeList generated exec, when running the test results will not be output to the box:
Here Insert Picture Description

If you want to see results, you can at the command line (Terminal ctrl + c) which run directly after make an executable file, so that you can get the right result.

Here Insert Picture Description

Guess you like

Origin blog.csdn.net/shanpenghui/article/details/89924758