Skip to content

qmljs: don't require QtQuick.XmlListModel module

Igor Kushnir requested to merge work/fix-test_qmljsdeclarations into master

The following error appears in CI build logs for months now:

FAIL!  : TestDeclarations::testQMLtypesImportPaths() 'QFileInfo::exists(path + "/plugins.qmltypes")' returned FALSE. ()
   Loc: [/builds/kdevelop/kdevelop/plugins/qmljs/duchain/tests/test_qmljsdeclarations.cpp(267)]

The Qt XML Patterns module, which contains QtQuick.XmlListModel, is not a dependency of KDevelop and therefore not available on the CI. The only other use of this module is in plugins/welcomepage/qml/NewsFeed.qml, but the news feed itself has been unconditionally disabled since c6665446. Skip the failing test when the module is unavailable instead of adding Qt XML Patterns to KDevelop's dependencies.

Fixes #30 (closed)

Merge request reports