Extension system: Extend error message for invalid test functions.

Output the list of available test functions.

Change-Id: I86578b9eeaa2f4cd5782de7ea2d90fae06e22542
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Friedemann Kleint
2016-02-05 10:37:13 +01:00
parent 5f69a505ec
commit e6a572e07a

View File

@@ -1106,7 +1106,11 @@ static TestPlan generateCustomTestPlan(IPlugin *plugin, const QList<QObject *> &
if (!matched) {
QTextStream out(stdout);
out << "No test function or class matches \"" << matchText
<< "\" in plugin \"" << plugin->metaObject()->className() << "\"." << endl;
<< "\" in plugin \"" << plugin->metaObject()->className()
<< "\".\nAvailable functions:\n";
foreach (const QString &f, testFunctionsOfPluginObject)
out << " " << f << '\n';
out << endl;
}
}