In this recipe, we will learn how to unit test our C++ code. There are several different ways to ensure that your C++ code executes with reliability, stability, security, and to specification.
Unit testing, which is the act of testing your code at the fundamental unit level, is a key component of any testing strategy. This recipe is important not only because it will teach you how to unit test your code, but because it will also explain why unit testing is so critical, as well as how to speed up the process of unit testing your C++ using existing libraries.