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

AutoTest: CMake based tests are recognized but failed to run

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important 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

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

        1. QtCreatorTestBug.zip
          3 kB
        2. run-all-tests.png
          run-all-tests.png
          94 kB
        3. example.tar.xz
          162 kB
        For Gerrit Dashboard: QTCREATORBUG-17882
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved: