Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to unit test the main Qt project using Qt test project
shravan_121 last edited by
I am new to Qt and I want to unit test a existing Qt c++ project with Qt test project. Can any one explain me how can I automate the main project using Qt test project in qmake.
Pablo J. Rogina last edited by
You can follow this tutorial about writing a unit test as well.
Hi and welcome to devnet,
Beside @Pablo-J-Rogina recommandations, what do you mean by automate ?
If you have unit test projects properly setup then you can call
make testsin your console to run the full test suite or if in Qt Creator, just run the unit test you are interested it like you would do for an application.