Unit testing is a very important stage during application development but is oftentimes ignored by developers, especially beginners. Unit testing ensures that the quality of your application is up to scratch and improves the user experience. One of the methods for unit testing is to integrate auto tests into your project. In this section, we will learn how we can implement different types of auto tests in Qt Creator.
The Qt Test framework consists of two parts—Qt Test and Qt Quick Test, which test C++, QML, and GUI features, whereas the other two frameworks only test C++ features. Pick the one that suits your project the most. We will look into each of them here.