Introduction to Google Test and CMake

Опубликовано: 24 Октябрь 2024
на канале: Rhymu's Videos
140,356
2.1k

A viewer on one of my recent Twitch streams made an excellent suggestion/request for a video showing how to get started with the Google Test framework, to develop unit tests as part of Test Driven Development.

I decided to throw in CMake as well and show how to start a new project using both, with a simple example that I hope anyone can follow along and do as well.

I hope you enjoy this video! If you have ideas/requests for similar videos, please let me know. I can't promise to produce them right away, but I'll definitely put them on the list for consideration.

Prerequisites for this example:

Visual Studio Code (VSCode)

C/C++ toolchain (examples: Visual Studio Community 2017, Xcode, Clang, gcc)

C/C++ extension for VSCode

CMake Tools extension for VSCode

CMake (either installed separately or as part of CMake Tools for VSCode)

git command-line tools (for cloning the googletest repository from github)