How to run tests and debug Google Test project in VS Code?
Start with a clean directory: /home/user/Desktop/projects/cpp/ # your project lives here Add your cmake file(CMakeLists.txt), your source files, and test file. The directory now looks like this: └─cpp/ ├─ CMakeLists.txt ├─ myfunctions.h └─ mytests.cpp Clone and add googletest to this directory: └─cpp/ ├─ googletest/ ├─ CMakeLists.txt ├─ myfunctions.h └─ mytests.cpp Open your CMakeLists.txt and enter … Read more