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

QtCreator does not discover QtQuickTests with a CMake project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 4.5.0
    • Test Integration
    • None
    • QtCreator version: 4.5.0

      Qt version: 5.10.0

      CMake version: 3.10.0

      OS: KDE neon User Edition 5.11

    Description

      QtCreator does not auto discover QtQuickTests.

      In the left sidebar menu -> Tests all QtTests are listed, but no Quick Tests.

      I added a minimalistic example project as an attachment. The project uses CMake, not QMake, might be that this is part of the issue.

      The CMakeLists.txt is from the Autotest project generator, I added a custom command to copy the qml files to the output directory. So that the test executable can find the tests cases as well.

      A better way would be if we can add the test qml files via a resource, just like we can with normal QtQuick applications / projects. If I am correct, there is no option to let QUICK_TEST_MAIN use qml files from the Qt Resource System.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cstenger Christian Stenger
            escyll Jesper Huijgens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes