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

AutoTest: CMake based tests are recognized but failed to run

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.5.0-rc1
    • Qt Creator 4.3.0-beta1, Qt Creator 4.3.0
    • Test Integration
    • None
    • QtCreator 4.3 beta1 (4.2.82) / Ubuntu 16.04
    • 6a470f0a702ee0bc30d5d4130421f3031151ecf0

    Description

      I have a cmake based project and one subdirectory specifies gtest based unit tests. The autotest plugin of QtCreator 4.2.1 lists all the test cases and allows me to run my tests and get a well formed list of test results.
      Trying the same with QtCreator 4.3 beta1 (nightly snapshot #969) failed: I see my test cases in the test view but running them result in the message "FATAL: Could not find command "". ()"

      (But I can execute and debug the unittest binary from QtCreator, just running the tests from the test view fails).

      Attachments

        1. run-all-tests.png
          94 kB
          Elvis Stansvik
        2. QtCreatorTestBug.zip
          3 kB
          Benjamin Schindler
        3. example.tar.xz
          162 kB
          Elvis Stansvik

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-17882
          # Subject Branch Project Status CR V

          Activity

            People

              cstenger Christian Stenger
              mic Michael Hanfland
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: