PDA

View Full Version : What kind of project for QTest?



feraudyh
11th May 2014, 10:52
I want to unit-test a few (non Gui) classes I ported from another language so the idea of trying QTest was rather natural.
When I look at the QTest documentation I read that there is a QTest macro that creates a main() function.
As far as I know you can't have two mains in one project. So creating a Console application is out of the question.
So then, what kind of project would you recommend?

anda_skoa
11th May 2014, 11:58
If you are using QtCreator, it has a program template for QTest based unit tests.
Look in category "Other Templates"

Cheers,
_

feraudyh
12th May 2014, 13:58
Thankyou!
I didnt think of looking that far.