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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        1. TestLib.zip
          5 kB
          Thomas Baumann

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: