Hi Pertti, There exists a community project QmlUnit for testing QML code straight from QML that is based on QUnit https://github.com/fgrehm/qmlunit
Also there is qtest-qml unit testing framework that originated from the QML testing needs of Qt/3D project http://qt.gitorious.org/qt-labs/qtest-qml Both provide basic functions and elements for unit testing in QML. Like you mentioned, so far most of the QML element testing has been done from C++ using QTestLib, which does not always extend well to more complex JavaScript API. There exists a requirement for improving QML test tooling, see http://bugreports.qt.nokia.com/browse/QTBUG-15801. Cheers, Joona -----Original Message----- From: qt-components-bounces+joona.t.petrell=nokia....@qt.nokia.com [mailto:qt-components-bounces+joona.t.petrell=nokia....@qt.nokia.com] On Behalf Of Kellomaki Pertti (Nokia-MS/Tampere) Sent: Tuesday, January 04, 2011 7:09 PM To: qt-compone...@trolltech.com Subject: [Qt-components] Unit testing JS APIs The current unit tests in qt-components deal with components that have fairly simple APIs that map easily to C++. How about components that have more complex APIs? For example, the PageStack API deals with JavaScript arrays. I presume they can be dealt with from C++ but is there something more convenient that could be used? -- Pertti _______________________________________________ Qt-components mailing list Qt-components@qt.nokia.com http://lists.qt.nokia.com/mailman/listinfo/qt-components _______________________________________________ Qt-components mailing list Qt-components@qt.nokia.com http://lists.qt.nokia.com/mailman/listinfo/qt-components