PDA

View Full Version : Qtestlib unittests & Qmake



saulit
5th February 2009, 19:06
Hi,

I hope you can help me with these. I'm a quite newbie with qt.. I have wrote unittests and i'm running those on (Windows) s60 emulator and i'm using Carbide. Every unittest is a application, I dont think that this is a best solution?

I have dir structure like this:
x:/tests/unittest1/
ut1.cpp
ut1.pro
x:/tests/unittest2/
ut1.cpp
ut1.pro
x:/tests/unittest3/
ut1.cpp
ut1.pro
......and so on...
x:/tests/
unittests.pro

so I compile all of them from lower level. I would like to get results of the each test to xml file to same folder. so, what I exactly have to write to unittest.pro file that I can get it to work? I tried something but I did not succeed. I have red those qmake documentations but I just cant get it work...

and other question is how I should make a somekind of testrunner, so I can run all those unittests with one application?

Maybe these questions are good start,
I really appreciate I get answers from you and get a little bit forward with this unittesting..