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

Remote execution of Unit Tests (GTest)

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Technical Risk:
      Normal

      Description

      I'm completely new to this, but I want to request a new feature for the autotest plugin to support remote execution. (It seems to support only local execution at this point).

       

      The problem I had is the following:

       
      I tried to deploy googletest executables to a remote device by using the "Test" view (e.g. by clicking on "Run All Tests"?

      The deployment should be configured correctly in my case, because after clicking "Run" or "Start Debugging" the executable is deployed and started on my device. The gtest output is then shown in the "Application Output".

      But I want to run only test cases which are selected in the "Test" view and see the results in the "Test Results" view. When I click on "Run This Test" I get the error:

      FATAL Failed to start test for project "CommonTestbench".
      Command line: /home/......./CommonTestbench --gtest_filter=_8_Utils.*
      PATH:
      LD_LIBRARY_PATH:
      Run configuration: "CommonTestbench"

      I think it skips the deploy step and tries to start the executable locally (which can not work, because it is compiled for an embedded system).

      Is it possible to use the "Tests" and "Test Results" views in combination with remote devices?

      I'm also not able to debug test cases. The debugger won't stop at any breakpoints.

        Attachments

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

          Activity

            People

            • Assignee:
              cstenger Christian Stenger
              Reporter:
              dan12 Daniel
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes