Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Google Test with Qt or just QTestLib?
Qt 6.11 is out! See what's new in the release blog

Google Test with Qt or just QTestLib?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.4k 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.
  • F Offline
    F Offline
    fykos
    wrote on last edited by
    #1

    Hello,

    I am new to Qt and C++ and I would appreciate some help with my questions.

    I need to develop a gui for a big project I am working on and because I am following the TDD approach I would like to do some tests before.

    I read some good comments about google test framework and I would to use it but it seems that its kind of hard to incorporate it with the qt framework and maybe I will have to use cmake. I know also that Qt has the QTestLib framework and I spend some time familiarizing myself with it.

    Has anyone done something similar before and which framework is preferable to use from time, performance perspective?

    Thanks

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      It all depends on the needs of your program/library. QTestLib is already available with no overhead, you can just use it (also with cmake) and it integrates easily in TDD projects. It also provides everything you need to test Qt specific stuff like signals.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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