Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator: Deploy Unit Test
Forum Updated to NodeBB v4.3 + New Features

QtCreator: Deploy Unit Test

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 2 Posters 731 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dan12
    wrote on last edited by dan12
    #1

    Is it possible 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?

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

    D 1 Reply Last reply
    0
    • D dan12

      Is it possible 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?

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

      D Offline
      D Offline
      dan12
      wrote on last edited by
      #2

      @dan12 Any idea?

      aha_1980A 1 Reply Last reply
      0
      • D dan12

        @dan12 Any idea?

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @dan12

        I think you should bring this question to the Qt Creator mailing list. It's very technical and only few here will have done such a setup.

        Regards

        Qt has to stay free or it will die.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dan12
          wrote on last edited by dan12
          #4

          Implementation Task has been created: https://bugreports.qt.io/browse/QTCREATORBUG-21759

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved