Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.2 KB

File metadata and controls

24 lines (17 loc) · 1.2 KB

SOLID fun with GTest

A spare time project to experiment with some SOLID principles and testing them with GTest/GMock. Ended up also being a crash course in VSCode tasks and launch configurations.

Attempted to follow the Google coding style guide, too...

Install dependencies

Setup, build, and run

  1. Open this directory in VSCode.
  2. Open settings.json and update "project.gdbPath" to point to your gdb installation (if necessary).
  3. Run the task 'build (debug)'.
  4. Set a breakpoint somewhere in the main.cpp file.
  5. Go to the run menu, run the launch configuration 'Run (Debug)'.
  6. Watch it launch and catch at the breakpoint.
  7. Try again with 'Run Tests (Debug).

You can also build a release version by using the task 'build' and run it with 'Run (Release)'