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
:interest-bounces+tony=rightsoft.com...@qt-project.org] On Behalf Of Soroush Rabiei Sent: Sunday, 26 January 2014 6:22 AM To: interest Subject: [Interest] Unit test with multiple data Hi I'm writing a test unit using Qt's QtTest library. My test case requires three strings (database

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

[Interest] Unit test with multiple data

2014-01-25 Thread Soroush Rabiei
Hi I'm writing a test unit using Qt's QtTest library. My test case requires three strings (database host, username and password) that they should be passed in command line. Documentation says data is passed to test unit in the following syntax: testname [options] [testfunctions[:testdata]]..