I try to setup quicktests for a qml application. I need to use QUICK_TEST_MAIN_WITH_SETUP to setup some things (including an import path) in the qmlEngine before launching the tests.
I have the following minimal code:
With this code my tests fail because the import path is not correctly set. If I launch the test with -import /home/elisabeth/dev/sofa/build/CircleCommonData/qml/ they pass. The qDebug calls seem to indicate that the setup slots are called after the tests instead of before the tests.
Is this a bug or did I do something wrong ?
|For Gerrit Dashboard: QTBUG-74160|
|255296,6||QUICK_TEST_MAIN_WITH_SETUP: fix qmlEngineAvailable() being called too late||5.12||qt/qtdeclarative||Status: MERGED||+2||0|