aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltest/doc/snippets
Commit message (Collapse)AuthorAgeFilesLines
* Correct license for examples filesLucie Gérard2024-05-166-6/+6
| | | | | | | | | | | According to QUIP-18 [1], all examples file should be LicenseRef-Qt-Commercial OR BSD-3-Clause [1]: https://contribute.qt-project.org/quips/18 Task-number: QTBUG-121787 Change-Id: I63f70069e32114713ba58ce0eb96365a534e09c5 Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Doc: Edit section about How to Separate Tests from App LogicAndreas Eliasson2024-04-169-35/+168
| | | | | | | | | | | Fix comments from cherry-pick patch 67ed2cd3b38024a78487350bc351b3c4c40f905e about improving the code snippets for 'How to separate tests from application logic'. Task-number: QTBUG-112840 Pick-to: 6.7 6.6 6.5 Change-Id: I0fd8e876479ca5f6865669268c9ec2a05d1d161e Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Correct doc snippet licenseLucie Gérard2024-03-224-4/+4
| | | | | | | | | | | | | | All file under doc/snippet should be license as Documentation snippets and according to QUIP-18 [1] thi is LicenseRef-Qt-Commercial OR BSD-3-Clause [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 6.7.0 Task-number: QTBUG-121787 Change-Id: Iee9bc9b8c2a81695c5825a36768b36db2726bd35 Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Doc: Add section that shows how to separate qml tests from app logicAndreas Eliasson2023-05-304-0/+113
| | | | | | | | | | | | All the examples in the docs only show how to test qml code that is in the same file as the test cases. In most cases, you would want to separate your tests from the application logic. This patch describes how to achieve this using CMake. Fixes: QTBUG-112840 Pick-to: 6.5 6.4 6.2 Change-Id: I81e8dafa5ea389fb5efa777ee0e51c661754762f Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
* Improve QUICK_TEST_MAIN_WITH_SETUP snippetSamuel Gaist2023-04-051-0/+12
| | | | | | | | | | The current snippet does not provide all the methods that are available to customize the setup and teardown of the test. This patch adds the two other methods that are called in the implementation. Pick-to: 6.5 Change-Id: Icfd298c9b987bd2a3fc6d05e588ae0962ea8ceff Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Change the license of all CMakeLists.txt and *.cmake files to BSDLucie Gérard2022-09-071-1/+1
| | | | | | | Task-number: QTBUG-105718 Change-Id: Id89ed14990804a5024183e75382cc539d4293da1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Add license headers to cmake filesLucie Gérard2022-07-081-0/+3
| | | | | | | | | | | | CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Existing copyright statements remain intact Task-number: QTBUG-88621 Change-Id: I72c89a98c42bbc9234d8495e9e503bec81d11037 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Use SPDX license identifiersLucie Gérard2022-06-112-98/+4
| | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I63563bbeb6f60f89d2c99660400dca7fab78a294 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Doc: Use find_package(Qt6 REQUIRED COMPONENTS ...) idiomKai Köhne2022-01-061-1/+1
| | | | | | | | | | Using REQUIRED as a prefix instead of suffix works better with OPTIONAL_COMPONENTS, and is also the order in the CMake manual. Task-number: QTBUG-98867 Pick-to: 6.2 6.3 Change-Id: I021c8f0c7f886d8f7037a1dd92ef1e8d747a45f4 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Remove the qmake project filesFabian Kosmale2021-01-151-7/+0
| | | | | | | | | Remove all qmake project files, except for examples which are used to test that qmake continues to work. Change-Id: Ic4abb72dc2dcd75df7a797c56056b6b3c5fe62ac Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Document how to use CMake for Qt QuickTestKai Koehne2020-12-031-0/+4
| | | | | | | Task-number: QTBUG-73058 Pick-to: 6.0 Change-Id: Ia00916e8ce8193225a773f85fe2af87e334afaab Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Make QtQuickTest snippets compilableNico Vertriest2020-06-293-10/+67
| | | | | | | Task-number: QTBUG-81495 Change-Id: I9e57ac2a22cea9d35847145842a7e822fd1c4c30 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Doc: Fix Qt Quick Test documentationMitch Curtis2018-12-141-0/+81
- Add qtquicktest-cppapi.qdoc for the C++ API landing page. - Add qtquicktest.qdoc for the QQuickTest namespace. - Add qtquicktest-qmltypes.qdoc for the QML types landing page. - Add ../../imports/testlib to the sourcedirs variable so that the QML files can be found. - Add a "Reference" section to qtquicktest-index.qdoc that has links to the QML and C++ pages. - Add more targets so that we can reliably link to them while keeping the nice short section names. - Fix minor issues in existing documentation. - Link to the QML API docs from the C++ API docs. Change-Id: I5fc3c90105b095d9ea84c3f76e6c7ba0a47c2695 Reviewed-by: Topi Reiniö <topi.reinio@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>