summaryrefslogtreecommitdiffstats
path: root/doc/src/testing.qdoc
blob: aac2348f0a310e1a36a82d538862d0a143cd7b6b (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
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only

/*!
\page testing-and-debugging.html
\title Testing and Debugging
\brief Writing unit tests and debugging with Qt
\ingroup explanations-platforms

Qt provides various functionality to help you develop high quality code. There
are features that assist in debugging to track down bugs, and testing facilities
that help to keep the bugs out.

\section1 Unit Testing

Qt facilitates the creation of unit tests to test interfaces such as classes,
functions, or whole libraries.

\list
\li \l {Qt Test Overview}{Qt Test} (also known as \e testlib) - a framework for unit tests of C++ code
\li \l {Qt Quick Test} - a framework for unit tests of QML code
\endlist

\section2 Autotests

Qt itself has a significant number of unit tests written with the Qt Test and Qt
Quick Test frameworks (\e autotests). These autotests are available for study in
the \c tests/auto directories of the source code of each Qt module. The
autotests are an important part of the continuous quality assurance in the
development of Qt.

\section1 Testing with Qt Creator

Qt Creator's full debugging workflow supports debugging both C++ and QML code
as well as the ability to profile code.

For more information, consult the \l{Qt Creator Manual}:
\list
\li \l{Qt Creator: Debugging}{Debugging}
\li \l{Qt Creator: Analyzing Code}{Analyzing Code}
\endlist

\section1 Debugging Techniques

These pages contain suggestions for debugging under various circumstances:
\list
\li \l {Debugging Techniques} - for C++ code
\li \l {Debugging QML Applications}
\li \l {Debugging Plugins}
\endlist
*/