Integrating with Google's C++ testing framework
GoogleTest is a testing and mocking framework developed by Google. The GoogleMock project has been merged into GoogleTest. GoogleTest requires a compiler that supports at least C++11 standards. It is a cross-platform test framework and it supports major desktop platforms such as Windows, Linux, and macOS. It helps you write better C++ tests with advanced features such as mocking. You can integrate Qt Test with GoogleTest to get the best of both frameworks. If you intend to use both testing framework features, then you should use GoogleTest as the primary testing framework and inside the test cases, you can use Qt Test's features.
Qt Creator has built-in support for GoogleTest. You can find the Google Test tab in the Testing section on the Options screen and set your global GoogleTest preferences as shown in Figure 9.10: