Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qttest-index.qdoc
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3/*!
4 \page qttest-index.html
5 \title Qt Test
6 \brief Provides C++ API for unit testing and benchmarking Qt applications and libraries.
7
8 The Qt Test module provides C++ API for \l{qttest-creating-a-test}{unit testing}
9 and \l{qttest-creating-a-benchmark}{benchmarking} Qt applications and libraries.
10 Most of the API can be found in the \l QTest namespace.
11 In addition, the \l QSignalSpy class provides easy introspection for Qt's signals and slots,
12 and the \l QAbstractItemModelTester allows for non-destructive testing of item models.
13
14 \note There is no binary compatibility guarantee for the Qt Test module.
15 This means that an application that uses Qt Test is only guaranteed
16 to work with the Qt version it was developed against. However, source
17 compatibility is guaranteed.
18
19 \section1 Using the Module
20
21 \include {module-use.qdocinc} {using the c++ api}
22
23 \section2 Building with CMake
24
25 \include {module-use.qdocinc} {building with cmake} {Test}
26
27 \section2 Building with qmake
28
29 \include {module-use.qdocinc} {building_with_qmake} {testlib}
30
31 \section1 Articles and Guides
32
33 \list
34 \li \l{Qt Test Overview}
35 \li \l{Qt Test Best Practices}
36 \li \l{Qt Test Tutorial}
37 \endlist
38
39 \section1 Reference
40
41 \list
42 \li \l{Qt Test C++ Classes}
43 \endlist
44
45 The \l {Qt Quick Test} module enables unit testing of Qt Quick applications.
46
47 \list
48 \li \l{Qt Quick Test QML Types}
49 \li \l{Qt Quick Test C++ API}
50 \endlist
51
52 \section1 Module Evolution
53 \l{Changes to Qt Test} lists important changes in the module API
54 and functionality that were done for the Qt 6 series of Qt.
55
56 \section1 Licenses and Attributions
57
58 Qt Test is available under commercial licenses from \l{The Qt Company}.
59 In addition, it is available under free software licenses:
60 The \l{GNU Lesser General Public License, version 3}, or
61 the \l{GNU General Public License, version 2}.
62 See \l{Qt Licensing} for further details.
63
64 Furthermore, Qt Test in Qt \QtVersion may contain third party
65 modules under the following permissive licenses:
66
67 \annotatedlist attributions-qttestlib
68*/