I have a project with many small classes which i would like to test, I'm using qmake and qtestlib.
Reading qtestlib's manual I got the impression that the common way to test classes is to use the QTEST_MAIN() macro, which expands into a main function. This means i must create a project file for every class.

How can I avoid creating so many project files just to test small classes?

My possible solutions would be:
- Covering different small classes in one test (But I'd prefer to keep classes separated)
- Writing my own main function which in turns calls the others functions
- Maybe reimplementing QTEST_MAIN to better suit my needs

I'd really like to get advises about this... What would you do? How are your projects structured?