How to debug failing GoogleTests
Hi,
I'm relatively new to CLion so I'm hoping this is a simple oversight on my part. I've been using Xcode with GoogleTest for years but CLion's default behaviour is quite different.
In Xcode when I run a test suite any FAILED tests will be flagged and at the end of the suite a summary of which tests failed is displayed.
In CLion a FAILED test immediately halts the runner which makes it impossible to debug the test to find out why it is failing.
I've tried adding a program argument such as --gtest_catch_exceptions=1 but no luck.
How can I replicate the Xcode style of test running in CLion where the whole suite will run even if one test fails earlier on?
请先登录再写评论。
Actually, my description is incorrect.
The entire test suite is run correctly but if any tests failed there is no opportunity to debug the tests and CLion's own test log panel displaying the test status outputs is not opened.