Results 1 to 2 of 2

Thread: QTestLib vs Google Test

  1. #1
    Join Date
    Jul 2012
    Location
    Austria
    Posts
    15
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question QTestLib vs Google Test

    Hy@everybody,

    I want to include unit-testing in my applications. I have searched for a while an found two possible candidates - QTestLib and Google Test. I read many articles, tutorials etc. about the two frameworks but i can't figure out what's the best framework for my projects.

    Here is what i know:

    QTestLib:
    Pros:
    -) directly integrated in Qt, no 3rdparty-library required
    -) simple and fast
    -) basic gui-testing
    Cons:
    -) the teststructure is a little bit strange
    -) is it good for non qt-based applications???

    Google Test:
    Pros:
    -) fast and very simple
    -) many features
    Cons:
    -) it is an 3rd-party library

    Many people like goole test very much because it seems to be very simple and powerful.

    So my questions are:
    -) Can anybody tell me what is "better"?
    -) Is it good to mix both in the same application?
    -) Is QTestLib good for non Qt-based applications?

    Please post your experiences here about QTestLib and/or Google Test.

    I use Qt 4.7.3 in an x64 environment.

    Thanks in advance
    Tonka

  2. #2
    Join Date
    Jul 2012
    Location
    Austria
    Posts
    15
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QTestLib vs Google Test


Similar Threads

  1. Unit Test: Test if QPushButton has a menu
    By FelixB in forum Qt Programming
    Replies: 1
    Last Post: 7th November 2012, 12:12
  2. QTestLib with QDjango
    By eekhoorn12 in forum General Programming
    Replies: 0
    Last Post: 16th January 2012, 15:18
  3. How to get the STDOUT from a QTestLib DLL?
    By entonjackson in forum Qt Programming
    Replies: 6
    Last Post: 19th October 2011, 09:02
  4. qtestlib
    By Jordan in forum Qt Programming
    Replies: 7
    Last Post: 28th September 2010, 11:47

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.