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. Qt Creator: Auto test with custom executable
Forum Update on Monday, May 27th 2025

Qt Creator: Auto test with custom executable

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 2 Posters 489 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.
  • GPBetaG Offline
    GPBetaG Offline
    GPBeta
    wrote on last edited by
    #1

    Hello everyone,
    We're getting started with the handy Qt Quick Test framework recently, but I got a little problem with the Qt Creator AutoTest interpreted feature.
    Since our application has some external runtime dependencies, the compiled programs (including the test stub) cannot be run directly in the output directory. Rather than the DESTDIR we run the executable in DLLDESTDIR, by adding custom executable in "Run settings".
    So far so good, but when I try to run tests in Qt Creator, it always use the default run configuration to run tests so that I can never get auto tests works with Qt Creator.
    Then I wonder is it possible to specify run configuration for a auto test project?
    Appreciate for any ideas!

    Environment: Windows 10 x64, Qt Creator 4.10.0

    \BAKA BAKA/

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Out of curiosity, why not do it the simpler way: modify the PATH environment of the Run part and add the paths to these third party libraries ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • GPBetaG Offline
        GPBetaG Offline
        GPBeta
        wrote on last edited by
        #3

        Hi SGaist, thank you for the reply.
        Even though setting the PATH environment is a nice solution for most situation, but there're some other resource dependencies in our project which are base on the absolute path of the main executable.

        \BAKA BAKA/

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Can you give more details about that ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • GPBetaG Offline
            GPBetaG Offline
            GPBeta
            wrote on last edited by
            #5

            For example that there's an dependency module(DLL) will use qApp->applicationDirPath() to make up paths to load fonts, images, add QML import paths, etc.

            \BAKA BAKA/

            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