Unit Testing

In this chapter, we will take a look at a process that has really grown in popularity in the recent years—unit testing. We’ll briefly talk about what it is and why we would want to do it before covering how to integrate it into our solution using Qt’s very own unit testing tool, Qt Test. We will cover the following topics:

  • Unit Testing principles
  • The default Qt approach
  • An alternative approach
  • DataDecorator tests
  • Entity tests
  • Mocking

Get Learn Qt 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.