[SailfishDevel] QtQuickTest tests imports and test/main code locations while there's no conditional import in QML

Reto Zingg reto.zingg at jolla.com
Mon Oct 21 12:37:49 UTC 2013


Hi,

On 21.10.2013 14:21, Artem Marchenko wrote:

>
> What would you do?

assuming you are using qmltestrunner for your qml tests 
(/usr/lib/qt5/bin/qmltestrunner from qt5-qtdeclarative-devel-tools), you 
can specify import path with "-import".

from "-help":

  QmlTest options:
  -import dir         : Specify an import directory.
  -input dir/file     : Specify the root directory for test cases or a 
single test case file.


br
Reto


More information about the Devel mailing list