I've got a simple C++ library with some tests using GTest:
I can run the tests just fine using CLion's gtest run configuration - it runs them as expected. It also does recognise all the tests in
nametract_test.cpp - if I want, I can run them individually.
However, when I set a breakpoint in my test case, or in
nametract.cpp, and run my tests, all the breakpoints are skipped. It does say that it is running with debugger, the tests themselves are being run and CLion reports the breakpoints as being enabled - however, it doesn't stop code execution on those. What might be the cause of this problem? How could I fix it?
CMakeLists.txt in tests folder:
target_link_libraries(tests_run gtest gtest_main)