Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Running QtQuickTest in Qt Quick 1.0 mode?
commodore_c64 last edited by
The documentation indicates that one can run a QtQuickTest in QtQuick 1.0 mode by passing the '-qtquick1' option. However, that doesn't seem to be supported:
@$ ../QmlTestRunner/QmlTestRunner -help
Usage: ../QmlTestRunner/QmlTestRunner [options] [testfunction[:testdata]]...
By default, all testfunctions will be run.
-import dir : Specify an import directory.
-input dir/file : Specify the root directory for test cases or a single test case file.
-qtquick1 : Run with QtQuick 1 rather than QtQuick 2.
-translation file : Specify the translation file.
-help : This help
When I do it in practice, it always generates an Unknown option error:
$ ../QmlTestRunner/QmlTestRunner -qtquick1
Unknown option: '-qtquick1'
If I don't pass in the -qtquick1 option but simply run the program, I get this:
file:///Users/user/workdir/mpaqtapp/tests/tst_Settings/tst_Settings.qml:1:1: module "QtQuick" is not installed
import QtQuick 1.0