ci: run qmltestrunner with offscreen Qt platform
Headless CI runner has no X display, so qmltest aborts loading the xcb plugin. Set QT_QPA_PLATFORM=offscreen for the ctest invocation in CI and in both Makefile qmltest targets so local headless runs work too. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -93,4 +93,4 @@ quality: build qmltest ## Run PHPStan, php-cs-fixer (check), PHPUnit, qmllint, q
|
||||
qmltest: ## Run QML unit tests (Qt::QuickTest via qmltestrunner)
|
||||
cmake -S ../../framework/qml -B ../../framework/qml/build-tests -DBUILD_TESTING=ON
|
||||
cmake --build ../../framework/qml/build-tests --target qml_unit_tests --parallel
|
||||
ctest --test-dir ../../framework/qml/build-tests --output-on-failure -R qml_unit_tests
|
||||
QT_QPA_PLATFORM=offscreen ctest --test-dir ../../framework/qml/build-tests --output-on-failure -R qml_unit_tests
|
||||
|
||||
Reference in New Issue
Block a user