Last Updated: February 25, 2016
· me

Generate separate reports per test with QtTestLib

Running QtTestLib test generates on result file per default. This behavior could be changed by passing a modified argument list to the QTest::qExecmethod and facilitating the QMetaObjects capabilities for infrastructure 'introspection' to generate test referring file name.

QStringList newArgs = QStringList(arguments);

int result = runTest(&loginCmdTest, newArgs);

You find more information at my blog entry: http://blog.mindcrime-ilab.de/2014/03/06/creating-class-level-xunit-report-files-with-qttestlib/