Re: [Interest] Unit test with multiple data

2014-01-28 Thread Soroush Rabiei
On Tue, Jan 28, 2014 at 6:45 AM, Tony Rietwyk wrote: > > Hi Soroush, > > > > I hit the same problem, and used this: > > > > // Can't use QTEST_MAIN, since we have our own parameters as well. > > // QTEST_MAIN( TTestPitchXml ) > > > > int main(int argc, char *argv[]) > > { > > #ifdef QT_GUI_LIB > >

Re: [Interest] Unit test with multiple data

2014-01-27 Thread Tony Rietwyk
Hi Soroush, I hit the same problem, and used this: // Can't use QTEST_MAIN, since we have our own parameters as well. // QTEST_MAIN( TTestPitchXml ) int main(int argc, char *argv[]) { #ifdef QT_GUI_LIB QApplication app(argc, argv); QTEST_DISABLE_KEYPAD_NAVIGATION #else

Re: [Interest] Unit test with multiple data

2014-01-26 Thread Jan Kundrát
On Saturday, 25 January 2014 20:22:16 CEST, Soroush Rabiei wrote: > testname [options] [testfunctions[:testdata]]... The "test data" are for data-driven testing, not for passing arbitrary arguments to the test case binary. See [1] for details. I don't think that fighting with QtTest's CLI ar