How to unit test the main Qt project using Qt test project
Unsolved
General and Desktop
-
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.
-
@shravan_121 have you already checked the documentation?
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 tests
in 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.