Chapter 9: Testing and Debugging
Debugging and testing are essential parts of software development. In this chapter, you will learn how to debug Qt projects, about different debugging techniques, and about debuggers supported by Qt. Debugging is the process of discovering the root cause of an error or undesired behavior and resolving it. We will also discuss unit testing using the Qt Test framework. Qt Test is a unit testing framework for Qt-based applications and libraries. It has all of the features that most unit testing frameworks provide. Additionally, it provides support for testing Graphical User Interfaces (GUIs). This module helps in writing unit tests for Qt-based applications and libraries in a convenient way. You will also learn techniques to test a GUI using different GUI testing tools.
Specifically, we will discuss the following topics:
- Debugging in Qt
- Debugging strategies
- Debugging a C++ application
- Debugging a Qt Quick application
- Testing...