summaryrefslogtreecommitdiff
path: root/src/plugins/autotest/quick/quicktest_utils.cpp
Commit message (Collapse)AuthorAgeFilesLines
* AutoTest: Further optimize TestCodeParser::scanForTests()Jarek Kobus2023-04-251-1/+2
| | | | | | | | | | | | | | | When loading a Qt project, after the Scanning For Tests finished, the scanForTests() blocks the main thread for about 3.5 seconds on the calls to parser->init(). Refactor the code so that it operates on QSet<FilePath> instead of QList<FilePaths>. This patch constraints the freeze to about 40 ms. Change-Id: I219b3e2abf2b7e5166eec08d83f4cdcb8e4a8098 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* AutoTest: Use using namespace Utils more oftenJarek Kobus2023-01-271-7/+8
| | | | | | | Change-Id: I9d20cd3496c4719d58a977f8fd53253c86d55463 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Autotest: move global static into functionDavid Schulz2022-08-021-3/+2
| | | | | Change-Id: I31dcbbba430ce7856e3dd8d7b907d01cd09112e8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* AutoTest: Use Utils::FilePath for files and directoriesChristian Stenger2021-05-271-6/+7
| | | | | | | | Still some missing bits as some QString members had different meanings depending on their context. Change-Id: Ib48eab54498974a26bbd5123cbffeefee5f7e79c Reviewed-by: hjk <hjk@qt.io>
* AutoTest: Introduce ITestTreeItemChristian Stenger2020-11-161-2/+2
| | | | | | | | Preparation for having separated test tree items with a common base. Change-Id: I3735f582cc96910e971f5a41c799cc0729a10a58 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Use ITestFramework * instead of its id in some caseshjk2020-03-161-2/+2
| | | | | Change-Id: Ic327e31185247b6479c78af8bf8156f44bb4bdfb Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* AutoTest: Extend expected quick test macrosChristian Stenger2018-06-191-1/+2
| | | | | | | | QUICK_TEST_MAIN_WITH_SETUP had been added to 5.11 to support C++ execution before running the QML tests. Change-Id: I6d490ab4b1ca486c8c2fe7fed4c1157f1b5d6707 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Use TypedTreeItem for test tree itemsChristian Stenger2018-04-201-6/+4
| | | | | Change-Id: I739b6aefc868550b01c7421b4b304293564bb7b6 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Avoid concurrent access on static function membersChristian Stenger2016-11-081-0/+77
First thread using the helper function initialized the list object another thread accesses it afterwards. This could be problematic under some circumstances. Issue was detected using Helgrind. Change-Id: I1520b1f7364742cb02630af1fd9d98960dec1f41 Reviewed-by: David Schulz <david.schulz@qt.io>