summaryrefslogtreecommitdiffstats
path: root/src/testlib/doc/src/qttest-index.qdoc
blob: 48549a93883382594dcba0f898f3425e1744d9a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
    \page qttest-index.html
    \title Qt Test
    \brief Provides classes for unit testing Qt applications and libraries.

    The Qt Test module provides classes for unit testing Qt applications and
    libraries. All public methods are in the \l QTest namespace. In addition,
    the \l QSignalSpy class provides easy introspection for Qt's signals and
    slots, and the \l QAbstractItemModelTester allows for non-destructive
    testing of item models.

    \note There is no binary compatibility guarantee for the Qt Test module.
          This means that an application that uses Qt Test is only guaranteed
          to work with the Qt version it was developed against. However, source
          compatibility is guaranteed.

    \include module-use.qdocinc using qt module
    \snippet snippets/CMakeLists.txt cmake_use

    See also the \l {Build with CMake} overview.

    \include module-use.qdocinc building with qmake
    \snippet snippets/code/code.pro qmake_use

    \section1 Articles and Guides

    \list
        \li \l{Qt Test Overview}
        \li \l{Qt Test Best Practices}
        \li \l{Qt Test Tutorial}
    \endlist

    \section1 Module Evolution
    \l{Changes to Qt Test} lists important changes in the module API
    and functionality that were done for the Qt 6 series of Qt.

    \section1 Licenses and Attributions

    Qt Test is available under commercial licenses from \l{The Qt Company}.
    In addition, it is available under free software licenses:
    The \l{GNU Lesser General Public License, version 3}, or
    the \l{GNU General Public License, version 2}.
    See \l{Qt Licensing} for further details.

    Furthermore, Qt Test in Qt \QtVersion may contain third party
    modules under following permissive licenses:

    \generatelist{groupsbymodule attributions-qttestlib}

    \section1 Reference

    \list
        \li \l{Qt Test C++ Classes}
    \endlist

    The \l {Qt Quick Test} module enables unit testing Qt Quick applications.

    \list
        \li \l{Qt Quick Test QML Types}
        \li \l{Qt Quick Test C++ API}
    \endlist

*/