Re: [Interest] Unit test with multiple data

2014-01-28 Thread Soroush Rabiei
On Tue, Jan 28, 2014 at 6:45 AM, Tony Rietwyk t...@rightsoft.com.au 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
-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 host, username

[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]