Commit e6a572e0 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Extension system: Extend error message for invalid test functions.



Output the list of available test functions.

Change-Id: I86578b9eeaa2f4cd5782de7ea2d90fae06e22542
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 5f69a505
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment