Introduction
Explore the importance of automated testing in C++ projects and learn to use CTest with Catch2 and GoogleTest frameworks. Understand how to automate code-style checks, unit tests, and coverage reporting to maintain high-quality code and simplify collaborative development.
We'll cover the following...
Now that we have become self-sufficient build engineers capable of building all kinds of projects with CMake, the final step in becoming a CMake professional is learning how to introduce and automate various quality checks and prepare our projects for collaborative work and publication. High-quality projects developed within large companies often share the same philosophy: automate repetitive tasks that drain mental energy from important decisions. To achieve that, we're leveraging the power of the CMake ecosystem to add tests during the build: code-style checks, unit tests, and static and dynamic analyses of our solutions. We'll also ...