Hi, On 11 May 2011 12:44, Patrick Ohly <patrick.o...@intel.com> wrote: > On Mo, 2011-05-09 at 13:57 +0200, Patrick Ohly wrote: >> How many individual tests should there be in bin/tests? I see: >> # bin/tests -functions >> testAddContactUpdateTimeStamp() >> testRemoveContact() > > That's because test/main.cpp contains multiple QTest::qExec() > invocations, for different tests. Is that how it is typically done? > > Selecting a specific function to test is possible via command line > arguments, but only for the first BasicTest. > > Seems to me that each executable should have exactly one QTest::qExec(), > right?
QTEST_MAIN will probably be useful to you, unless you need to specifically handle setup yourself: http://doc.qt.nokia.com/latest/qtest.html#QTEST_MAIN It handles argument processing, invoking testcases, and so on. -- Robin Burchell http://rburchell.com _______________________________________________ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines