Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Can Qt creator can add Google Test Framework

Can Qt creator can add Google Test Framework

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 5 Posters 11.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    acy062
    wrote on last edited by
    #1

    I want to know if Google Test Framework can be connected with the Qt creator.
    If we have to connectt he Google Test Framework, how can we do it.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Depends on what the "Google Test Framework" actually is:-) Do you have some links?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sidewinder
        wrote on last edited by
        #3

        I think he talks about "google unit tests":http://code.google.com/p/googletest/ and maybe "google mocks":http://code.google.com/p/googlemock/ as well.

        AFAIK you can get it to work (it's c++ after all :) ) but not without some quirks. Check "this":http://stackoverflow.com/questions/2783464/use-google-test-from-qt-in-windows. Also, you will have problems testing Qt stuff generated by moc (signals/slots, meta objects, properties, etc...).

        "Never memorize what you can look up in books."
        Albert Einstein

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Skylar
          wrote on last edited by
          #4

          Not yet started this UnitTest point, but may I please ask you why not using QTestLib ?

          http://qt-project.org/doc/qt-5.0/qtestlib-manual.html

          In most cases, the bug is mine. But of the remaining lines are correct.

          1 Reply Last reply
          0
          • N Offline
            N Offline
            ningen
            wrote on last edited by
            #5

            There is the plugin http://sourceforge.net/projects/qtc-gtest/
            есть вот это на русском: http://gres.biz/qtc-gtest/

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved