Well, maybe it doesn't matter, since the same person always answers posts .

To elaborate on what I'm getting at, I'm used to frameworks(junit, nunit) / IDEs(eclipse, VS) that will run "all" your tests (for a given project) in one go, even if they are in different libraries. I'm trying to do that with QT.

So you're saying I need /proj/tests/projtests.pro to look something like this:
Qt Code:
  1. QT += testlib
  2. TARGET = Tests
  3. CONFIG += console
  4. TEMPLATE = app
  5. SOURCES += main.cpp
  6.  
  7. include(../data/tests/datatests.pri)
  8. include(../foo/tests/footests.pri)
  9. include(../bar/tests/bartests.pri)
To copy to clipboard, switch view to plain text mode 

And then a corresponding /proj/tests/main.cpp like this:
Qt Code:
  1. #include <QTest>
  2.  
  3. int main(int argc, char *argv[])
  4. {
  5. DataTests test1;
  6. FooTests test2;
  7. BarTests test3;
  8.  
  9. QTest.qExec(&test1);
  10. QTest.qExec(&test2);
  11. QTest.qExec(&test3);
  12.  
  13. return 0;
  14. }
To copy to clipboard, switch view to plain text mode 

Do I need to #include the .moc files in this case?