-
Book Overview & Buying
-
Table Of Contents
Minimal CMake
By :
This brings us to the end of our first foray into testing. There is a huge amount we didn’t cover, but hopefully, this has given you a flavor of what is possible with CTest and how it can bring an array of different testing approaches together.
In this chapter, we were introduced to CTest to understand what it is and how it can help us manage various kinds of tests across our libraries and applications. Testing is critical and understanding where CTest fits into the testing ecosystem is important. We saw how to use CTest when adding unit tests to our foundational libraries, how to structure unit tests within an application, and how to create a separate testable executable for running full end-to-end tests. We also saw how to author CMake scripts to test other parts of our project. This was all orchestrated and connected through CTest. These skills will help you build successful and reliable software projects.
We then took a brief tour of CDash to understand what...