Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.4.1
-
None
-
466fb7ea530b67ded1af2895b22e782afd809c74
Description
I have multiple QML test cases in my project and each test case consists of multiple tests. Also each test case has a init() and a cleanup() function.
right-clicking in the Tests view and select the entry to run all tests works well and all tests will pass. When right-clicking a test case and select to run only this test will result in a failing test case because framework hasn't executed the test functions init() and cleanup():
qml-tests::MyTest::cleanupTestCase
Could not find functions: MyTest::cleanup,MyTest::init
This message is printed when a list of test functions to execute is provided when starting the test but the functions couldn't be found (were not executed). It seems that the AutoTest plugin provides a list of functions that also contains the reimplemented init/cleanup/initTestCase/cleanupTestCase functions.