Chapter 7: Seamlessly Integrating Code Quality Tools with CMake
So far, we have focused on building and installing projects, as well as generating documentation and handling external dependencies. Another major task when writing quality software is testing and ensuring that the code quality is at the desired level by various other means. To achieve a high code quality, just writing unit tests and executing them once in a while is no longer enough. If you want to produce high-quality software, having proper test tools that integrate easily with your build system is not a luxury but a necessity. Only if building and testing work effortlessly together can the programmers focus on writing good tests instead of focusing on getting those tests to run. Methods such as test-driven development bring huge value to the software quality.
But, it is not just writing plain tests that increase the quality. Writing good tests is one thing; checking the effectiveness of the tests with coverage...