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 code quality is at the desired level by various other means. To achieve high code quality, writing unit tests and executing them occasionally 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 when building and testing work effortlessly together can 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 software quality.
However, 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 reports and ensuring general...