Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.9.2
-
None
-
-
c020fb6e3e5e2cb4ab4dcdb76fbc7693b1e45c96 (qt-creator/qt-creator/4.10)
Description
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.