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

Qt Creator Test Plugin vs Google Tests with precompiled headers

    XMLWordPrintable

Details

    • Linux/X11
    • 9db6569c43bd2acfb453b5e67f13d7f0ee4448a6 (qt-creator/qt-creator/master)

    Description

      I just suffered from the misbehavior of some new Google Test projects that are run using Qt Creator. The Test Plugin was not able to find the tests. Still the application could be started and the test results were be printed to the console as plain text.
       
      After a lot of try and error I found that the Test Plugin does not play well with precompiled headers. When placing the Google Test headers (#include <gtest/gtest.h>
      and #include <gmock/gmock-matchers.h>) in the precompiled header only, tests are not found. When placing them directly in the test code files, it works.

      Attachments

        Activity

          People

            cstenger Christian Stenger
            silicomancer Bernhard Lindner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: