If you create a QML test file (like tst_MyApp.qml) with more than one TestCase type, Qt Creator displays only the last TestCase name in the Tests tree, containing test_*() functions from all TestCase objects from that file. The result in the Tests tree is shown in the attached image.
Running "Selected tests" for all the tests under the displayed Test Case (in this example, TestCase2) fails with the attached XML file (selectedTests.xml) as output. Running the single test function (test_TestCase1()) that doesn't belong to the displayed name (TestCase2) also fails while running the one belonging to the displayed name succeeds.
Running all tests succeeds as it does generally from command-line.
|For Gerrit Dashboard: QTCREATORBUG-22761|
|268638,4||AutoTest: Fix parsing of multiple test cases in single qml file||4.10||qt-creator/qt-creator||Status: MERGED||+2||0|