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

Detect test projects with multiple tests inside too

    XMLWordPrintable

Details

    • 615b37193bf2577efa609df364865ff6b7fe43a9 (qt-creator/qt-creator/master)

    Description

      We have a large(ish) project and lots of tests. We noticed that creating a separate executable for each test class increases linking time quite a lot, so we created multiple (but less than previously) test executables that each run multiple (related) tests calling QTest::qExec multiple times from the same main() function.
      BUT... I noticed, that running all tests from Qt Creator doesn't run these tests, but only the single tests declared with QTEST_APPLESS_MAIN / QTEST_GUILESS_MAIN / QTEST_MAIN.

      See a detailed description here: https://gist.github.com/oranja/c032d7f77becca18137d49251e791593

      So, it would be nice, if:

      1. additional texts that this plugin looks for to detect test classes, could be configured in the plugin's options
        OR
      2. instead of looking for test classes, look for test projects (search keywords "testcase" / "testlib" in the .pro file and included .pri files?). Then run the detected executables' main() function and parse the output.
      3. any other solution that would allow us running multiple tests from a single executable and still be compatible with this plugin.

      Attachments

        Issue Links

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

          Activity

            People

              cstenger Christian Stenger
              mbardos76 Marton Bardos
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes