Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-107252

qt_add_test_executable() for making simple tests

    XMLWordPrintable

Details

    Description

      The test project wizard in Qt Creator is fine, but perhaps something like qt_add_test_executable() could also be implemented for CMake to make it easier to add simple tests to a project that don't need any special setup.

      For example it could generate minimal main.cpp for the test and automatically set QUICK_TEST_SOURCE_DIR macro, and additionally do a call to add_test() for ctest support.

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            poikelin Joni Poikelin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes