Hi,
I want to know the unit test tool for Qt and I want to know what is QtTestLib ? and what is the purpose of it? Please help me?
Thanks,
Mythili
Hi,
I want to know the unit test tool for Qt and I want to know what is QtTestLib ? and what is the purpose of it? Please help me?
Thanks,
Mythili
Is there any automated tool for unit testing the qt applications?
Thanks,
Mythili
Is there any plug-in or tool for unit test the qt applications??
there is Google unit test for C++ and QtTest (has different modules that need to be enabled to test additional functionality, QML, networking etc) also there is squish for QML GUI testing as well. To enable Google Test plugin in Qt Creator 4+ go to help menu->about plug-ins->Utilities->Auto Test when creating a new project you will need to select "other project" then select "auto test project" and then you can sepecify from a drop down to choose either Qt Test or Google Test for unit testing. It allows you to design multiple test that I think get called from a main in your gtest project location. You will need to go download the Google unit test c++ repo from git hub. When configuring a new Google unit test project the wizard will have you point to the Google unit test source variable. Also note when creating a new project under "other project" you can select Qt Unit Test and from my understanding this lets you create unit test to test QML code and other asspects of the application. I hope this helps I'm in the processes of implementing Google unit test for my next project and another team member is looking in to squish for unit testing the QML. here is a good link to some documentation on google test in Qt -> http://doc.qt.io/qt-4.8/http://doc.qt.io/qtcreator/creator-autotest.html
Last edited by jfinn88; 1st May 2017 at 19:02.
Bookmarks