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

Test doesn't show up when forward declared in test class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • Qt Creator 4.5.0-rc1
    • Qt Creator 4.4.1, Qt Creator 4.5.0-beta1
    • Test Integration
    • None
    • 0d87abee8bb71f0d6e2115402f427689f1840eb5

      I have a class (TestLib) and an according test class (TestLibTest). The test class needs access to the private members/methods of the TestLib class. For this, the TestLib class has a forward declaration of the TestLibTest class and declares it as friend.

      In this constellation, the test won't show up in Qt Creators tests pane. Only if the forward declaration of the test class is removed, the test will show up aftetr a new scan for tests.

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

            cstenger Christian Stenger
            tebadem Thomas Baumann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes