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

add_test does not set Command Line Arguments in Run configuration

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 5.0.3
    • Test Integration
    • None
    • I used Qt Creator 5.0.3 on Ubuntu 20.04 LTS on WSL2.

    • Other

      I recently found the Test pane in Qt Creator.  I tried running my tests in there, but a handful of them failed because they require an additional command line argument for the test data path.  I would expect add_test or a similar command in CMake to automatically handle that, but it does not seem to be the case.  I enable the Process arguments option under Testing in Tools>Options, but that only forwards the Command Line Arguments defined in the Run configuration.  It would be nice if Qt Creator would automatically set my Command Line Arguments in the Run configuration, so that my tests would run without issue from the Test pane.

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

            cstenger Christian Stenger
            compscidude Thomas Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes