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

Autotest not working with CMake

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Qt Creator 3.6.1, Qt Creator 4.1.0-rc1
    • Fix Version/s: Qt Creator 4.0.0-beta1
    • Component/s: Test Integration
    • Labels:
      None
    • Environment:
      Windows desktop, Qt 5.4.2, Qt 5.6.0, CMake 3.5-rc2
    • Commits:
      cacc5bfb9be2b8cfd175ccb1fd6ab953b46b7772

      Description

      Autotest doesn't work for CMake projects.

      First, it checks for "#define QT_TEST_LIB 1" in the project parts, but official cmake scripts setup "#define QT_TEST_LIB".

      Easy to fix, now the plugin detects all tests, but fail to run them. No project configuration found, because completeBasicProjectInformation() check agains a pro file, which is not existing.

        Attachments

        1. CMakeTest.tbz
          1 kB
        2. CMakeTest.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            cstenger Christian Stenger
            Reporter:
            zerocom Stefan Sommerfeld
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes