Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
doc_src_qtestlib.qdoc
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4//! [2]
5testname [options] [testfunctions[:testdata]]...
6//! [2]
7
8
9//! [3]
10/myTestDirectory$ testQString toUpper
11//! [3]
12
13
14//! [4]
15/myTestDirectory$ testQString toUpper toInt:zero
16//! [4]
17
18
19//! [5]
20/myTestDirectory$ testMyWidget -vs -eventdelay 500
21//! [5]
22
23
24//! [6]
25./testqlocale roundTripInt:zero
26//! [6]
27
28//! [7]
29./testqlocale roundTripInt:C
30//! [7]
31
32//! [8]
33./testqlocale roundTripInt:C:zero
34//! [8]
35
36//! [9]
37/myTestDirectory$ qmake -project "QT += testlib"
38/myTestDirectory$ qmake
39/myTestDirectory$ make
40//! [9]
41
42
43//! [10]
44********* Start testing of TestQString *********
45Config: Using QtTest library %VERSION%, Qt %VERSION%
46PASS : TestQString::initTestCase()
47PASS : TestQString::toUpper()
48PASS : TestQString::cleanupTestCase()
49Totals: 3 passed, 0 failed, 0 skipped
50********* Finished testing of TestQString *********
51//! [10]
52
53//! [11]
54********* Start testing of TestQString *********
55Config: Using QtTest library %VERSION%, Qt %VERSION%
56PASS : TestQString::initTestCase()
57PASS : TestQString::toUpper(all-lower)
58PASS : TestQString::toUpper(mixed)
59PASS : TestQString::toUpper(all-upper)
60PASS : TestQString::cleanupTestCase()
61Totals: 5 passed, 0 failed, 0 skipped, 0 blacklisted, 0ms
62********* Finished testing of TestQString *********
63//! [11]
64
65//! [12]
66********* Start testing of TestGui *********
67Config: Using QtTest library %VERSION%, Qt %VERSION%
68PASS : TestGui::initTestCase()
69PASS : TestGui::testGui()
70PASS : TestGui::cleanupTestCase()
71Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 20ms
72********* Finished testing of TestGui **
73//! [12]
74
75//! [13]
76********* Start testing of TestGui *********
77Config: Using QtTest library %VERSION%, Qt %VERSION%
78PASS : TestGui::initTestCase()
79PASS : TestGui::testGui(char)
80PASS : TestGui::testGui(there+back-again)
81PASS : TestGui::cleanupTestCase()
82Totals: 4 passed, 0 failed, 0 skipped, 0 blacklisted, 18ms
83********* Finished testing of TestGui *********
84//! [13]
85
86//! [14]
87********* Start testing of TestBenchmark *********
88Config: Using QtTest library %VERSION%, Qt %VERSION%
89PASS : TestBenchmark::initTestCase()
90PASS : TestBenchmark::simple()
91RESULT : TestBenchmark::simple():
92 0.00030 msecs per iteration (total: 79, iterations: 262144)
93PASS : TestBenchmark::multiple(locale-aware-compare)
94RESULT : TestBenchmark::multiple():"locale-aware-compare":
95 0.00029 msecs per iteration (total: 78, iterations: 262144)
96.....
97PASS : TestBenchmark::series(locale-aware-compare:8001)
98RESULT : TestBenchmark::series():"locale-aware-compare:8001":
99 0.039 msecs per iteration (total: 81, iterations: 2048)
100Totals: 15 passed, 0 failed, 0 skipped, 0 blacklisted, 3971ms
101********* Finished testing of TestBenchmark *********
102//! [14]