Page 1 of 1

Qt Test or GoogleTest or other?

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

Re: Qt Test or GoogleTest or other?

PostPosted: Mon Nov 06 2017 3:49 am
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

Re: Qt Test or GoogleTest or other?

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