Qt Test or GoogleTest or other?

Post Reply
grant
Posts: 9
Joined: Mon Aug 28 2017 6:34 am

Qt Test or GoogleTest or other?

Post by grant »

Hi,

I want to test no-Qt code from within QtCreator and then later also test Qt code. I have to decide one (or more??) testing frameworks to learn. I could try "Qt test", or another one. Would you recommend other C++ testing frameworks such as GoogleTest based on xUnit?

Any advice on how to proceed?

++Regards,
Grant
barbara
Posts: 443
Joined: Sat Apr 04 2015 2:32 am
Contact:

Re: Qt Test or GoogleTest or other?

Post by barbara »

Would you recommend other C++ testing frameworks such as GoogleTest based on xUnit?
We have had good results with Boost Test but it really depends on what you are testing. I would suggest your write a small sample which you know works and try it in a few different systems. It is really a matter of personal preference and what integrates best with your build system.

CopperSpice does not use QtTest as it has various issues and is not widely used outside of their development.

Barbara
grant
Posts: 9
Joined: Mon Aug 28 2017 6:34 am

Re: Qt Test or GoogleTest or other?

Post by grant »

Thanks for the tip. A friend also recommended "doctest" and it looks promising too.
++Regards,
Grant
PS I like your videos and plan to use your internationalization string library. :)
CandL
Posts: 49
Joined: Mon Oct 14 2019 6:37 pm

Re: Qt Test or GoogleTest or other?

Post by CandL »

I use Google Test across a range of applications and build systems. Works well enough for me.

Regards
Carl
Post Reply