Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-19311

AutoTest: Running a QuickTest test case that contains a init/cleanup function fails

    XMLWordPrintable

Details

    • 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.

      Attachments

        Activity

          People

            cstenger Christian Stenger
            lutz Lutz Schönemann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: