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

Add support for CTest ENVIRONMENT keyword

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • None
    • Qt Creator 4.15.2
    • Test Integration
    • None
    • All

    Description

      CTest tests allow to specify ENVIRONMENT variables per test case. Documentation for this feature is here: https://cmake.org/cmake/help/latest/prop_test/ENVIRONMENT.html
      This individual environment variable configurations (which are super handy when having integration tests that need special setups) are luckily available via ctest -N --show-only=json-v1, which is the call cmakebuildsystem.cpp uses for selecting all tests.
      I want to suggest to add these ENVIRONMENT values to the execution of the individual test cases, appending the currently configured execution environment.

      Attachments

        1. ctest-environment-test.tar.gz
          3 kB
          Andreas Cord-Landwehr
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cstenger Christian Stenger
            cordlandwehr Andreas Cord-Landwehr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes