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

QtCreator can't find tests when using custom macro name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.8.1
    • Qt Creator 4.5.1, Qt Creator 4.8.0
    • Test Integration
    • Windows 10 x64, MSVC2015 32-bit

       
    • bcafe202c9f8a7c4bad4cf60095138b1d6cbf2ac

    Description

      The Qt TreeFrog library uses its own macros (TF_TEST_MAIN and TF_TEST_SQLLESS_MAIN) to declare unit tests. After creating sample test following the description on this page:

      http://www.treefrogframework.org/en/user-guide/test/ the test it is not visible in Qt Creator.

      If I copy the contents of TF_TEST_MAIN macro directly to the testblog.cpp file, the test is detected by QtCreator.

      Here is the declaration of TF_TEST_MAIN and TF_TEST_SQLLESS_MAIN:

       https://github.com/treefrogframework/treefrog-framework/blob/master/src/tftest.h

       

      Attachments

        1. 1.png
          1.png
          90 kB
        2. 2.png
          2.png
          101 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cstenger Christian Stenger
            amiart Robert Szefner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes