Commit Graph

3 Commits

Author SHA1 Message Date
Tim Blechmann 0bf9833053 compile fix for manual tests
QLibraryInfo was used, but the header was missing

Pick-to: 6.10
Change-Id: I141f7b5340b92df5bb757f2caed22b8375ee05e7
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2025-06-20 17:27:10 +08:00
Giuseppe D'Angelo fb4abf95c1 Tests: include QTest, not QtTest
Never use module-wide inclusions. They blow up build times. For QtTest
this is usually just a typo (QTest was meant instead). Add missing
includes as needed.
In the diffs I've spotted other huge inclusions (QtQuick, QtQml), but
those need more attention.

Task-number: QTQAINFRA-7110
Pick-to: 6.9 6.8
Change-Id: I74bf3fe212f50a7a3a6af2b1c80bbcaabc2516d7
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2025-04-15 19:27:07 +02:00
Dmitrii Akshintsev cb43a85ba7 qmlformat: "Move" testExample e2e tests to /manual
testExample, normalizeExample and actually most of the tests in
tst_qmlformat are e2e tests and in general QmlFormat lacks
unit test coverage, compensating it with e2e.

The biggest problem atm that some of those tests (namely testExample)
take too much time to execute because it runs QmlFormat over almost
all files in examples and tests directories.
Unfortunately atm our QA&QE infra can't provide tools for an easy
automated setup of potentially time-consuming tests.

As a workaround this commit:
1. "Moves" testExample and normalizeExample to the /manual tests
2. Preserves a very small fraction of testData for automated testing
"just in case"

Steps to repro:
1. configure with the flag `-make manual-tests`
2. `ninja e2e_qmlformat`
3. run ;)

Fixes: QTBUG-122990
Change-Id: Id41baee15e8826f4def5787f62790ed46f00e5dc
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2024-04-23 20:33:38 +02:00