[Development] qtest-qml osx

Chao Caroline Caroline.Chao at digia.com
Mon Dec 16 12:47:05 CET 2013


Qt Quick Test is part of Qt (in the qtdeclarative repo). I think the problem here is that you are trying to run a test using qmlscene directly.

QML TestCases should be launched via a C++ harness:

Hope this helps.



From: development-bounces+caroline.chao=digia.com at qt-project.org [development-bounces+caroline.chao=digia.com at qt-project.org] on behalf of Joshua Kolden [joshua at studiopyxis.com]
Sent: Sunday, December 15, 2013 11:18 PM
To: development at qt-project.org
Subject: [Development] qtest-qml osx

We have a fairly large qml project, and with 5.2 we are trying to switch to TDD for all components (c++, js (coffescript), QML).  Qt Creator and qmlscene in 5.2 both seem to have the same issue that files are missing:

>qmlscene test1.qml
file:///x/d/qt/testDrivenQML/test1.qml:25 Type TestCase unavailable
file:///Users/joshua/Qt5.2.0/5.2.0/clang_64/qml/QtTest/TestCase.qml:45 module "Qt.test.qtestroot" is not installed

qt-labs/qtest-qml has a merge request under ‘review’ from 2 years ago!!  It refers to a problem with OSX installation (OSX is our primary development environment).  I have not been able to test this issue on other platforms, but noticing that both the merge request and the README install directions for qtest-qml are both very dated I thought it might be better just to ask here if this is dead, or is it supposed to work in 5.2 / OSX?  Docs for TestCase in 5.2 imply that it’ll work the same as any QML Type.

Also in a separate note, the new Qt Creator crashes consistently when trying to create a new qt quick project through the interface.

Thanks for the hard work!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131216/d8bdfcd6/attachment.html>

More information about the Development mailing list