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 » Sun Nov 05 2017 7:43 pm

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: 73
Joined: Sat Apr 04 2015 2:32 am

Re: Qt Test or GoogleTest or other?

Post by barbara » Mon Nov 06 2017 3:49 am

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 » Mon Nov 06 2017 5:31 pm

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. :)

Post Reply