[Interest] Unit test with multiple data

Jan Kundrát jkt at flaska.net
Sun Jan 26 13:18:14 CET 2014


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 arg parser is a way to go 
here. I would use some other channel for passing the information you need 
to pass -- perhaps the environment variables, perhaps a configuration file.

Cheers,
Jan

[1] http://qt-project.org/doc/qt-4.8/qtestlib-tutorial2.html

-- 
Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/



More information about the Interest mailing list