forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user