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

2013-10-21 Thread Artem Marchenko
I can't see how it would help the situation, Reto :/ -import might be able add extra imports and runtime (though I think it needs qmldir and proper plugin and doesn't work with just import directory, but maybe it works with just the directory too. Still QML file will have import "../src" for the

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

2013-10-21 Thread Reto Zingg
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

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

2013-10-21 Thread Artem Marchenko
Hi All I have a nearly pure QML projects and want to have some QtQuickTest tests for it too. So the standard approach for organizing a project would be then something like: - MyApp - subdirs project - src - actual app - test - tests When deployed to the device-emulator (I suspect situation i